Use local timezone instead of UTC-5

This commit is contained in:
gbear605 2022-01-26 18:39:23 -05:00
parent f8aa91766d
commit 3cf6b8eb60

View file

@ -14,7 +14,7 @@ export const isWinningWord = (word: string) => {
export const getWordOfDay = () => {
// January 1, 2022 Game Epoch
const epochMs = 1641013200000
const epochMs = new Date('January 1, 2022 00:00:00').valueOf()
const now = Date.now()
const msInDay = 86400000
const index = Math.floor((now - epochMs) / msInDay)