Update words.ts
This commit is contained in:
parent
7cd4195233
commit
cf5c8ec933
1 changed files with 1 additions and 5 deletions
|
@ -14,11 +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 now = Date.now()
|
|
||||||
const msInDay = 86400000
|
|
||||||
const index = Math.floor((now - epochMs) / msInDay)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
solution: WORDS[0].toUpperCase(),
|
solution: WORDS[0].toUpperCase(),
|
||||||
solutionIndex: 0,
|
solutionIndex: 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue