Podpora víkendů
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ClientData, Locations } from "./types";
|
||||
import { db } from "./database";
|
||||
import { getTodayString } from "./utils";
|
||||
import { getHumanDate, getIsWeekend } from "./utils";
|
||||
import { getDate } from "./utils";
|
||||
|
||||
// /** Jedna konkrétní pizza */
|
||||
@@ -33,7 +33,7 @@ import { getDate } from "./utils";
|
||||
|
||||
/** Vrátí "prázdná" (implicitní) data, pokud ještě nikdo nehlasoval. */
|
||||
function getEmptyData(): ClientData {
|
||||
return { date: getTodayString(), choices: {} };
|
||||
return { date: getHumanDate(new Date()), isWeekend: getIsWeekend(new Date()), choices: {} };
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user