mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-18 03:26:07 +08:00
fixed start of day timestamp being incorrect
This commit is contained in:
parent
ce404ec964
commit
756c05da96
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue