histogram width divide by mode, not total #2

Merged
christofsteel merged 47 commits from honigle into main 2022-02-02 13:59:36 +01:00
Showing only changes of commit 3cf6b8eb60 - Show all commits

View file

@ -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)