histogram width divide by mode, not total #2
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ export const isWinningWord = (word: string) => {
|
||||||
|
|
||||||
export const getWordOfDay = () => {
|
export const getWordOfDay = () => {
|
||||||
// January 1, 2022 Game Epoch
|
// January 1, 2022 Game Epoch
|
||||||
const epochMs = 1641013200000
|
const epochMs = new Date('January 1, 2022 00:00:00').valueOf()
|
||||||
const now = Date.now()
|
const now = Date.now()
|
||||||
const msInDay = 86400000
|
const msInDay = 86400000
|
||||||
const index = Math.floor((now - epochMs) / msInDay)
|
const index = Math.floor((now - epochMs) / msInDay)
|
||||||
|
|
Loading…
Add table
Reference in a new issue