inviton-powerduck 0.0.223 → 0.0.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -265,7 +265,7 @@ import { globalState } from '../../../../app/global-state';
|
|
|
265
265
|
// 1970 01 01 bol štvrtok. Pre weekday v rozsahu 0..6 kde 0 nedeľa:
|
|
266
266
|
const weekdayFromEpochDay = (epochDay: number) => (epochDay + 4) % 7; // 0 št 1 pia 2 so 3 ne 4 po 5 ut 6 st
|
|
267
267
|
// ak chceš 0 nedeľa:
|
|
268
|
-
const weekdaySun0 = (epochDay: number) => (epochDay + 4
|
|
268
|
+
const weekdaySun0 = (epochDay: number) => (epochDay + 4) % 7; // posun na nedeľu
|
|
269
269
|
|
|
270
270
|
const toEpochDayUTC = (msUTC: number) => Math.floor(msUTC / MS_PER_DAY);
|
|
271
271
|
const fromEpochDayUTC = (epochDay: number) => epochDay * MS_PER_DAY;
|