fixed start of day timestamp being incorrect

This commit is contained in:
Miodec 2023-06-16 16:08:05 +02:00
parent ce404ec964
commit 756c05da96

View file

@ -88,9 +88,7 @@ export function getStartOfDayTimestamp(
timestamp: number,
offsetMilis = 0
): number {
return (
timestamp - offsetMilis - ((timestamp - offsetMilis) % MILLISECONDS_IN_DAY)
);
return timestamp - ((timestamp - offsetMilis) % MILLISECONDS_IN_DAY);
}
export function getCurrentDayTimestamp(): number {