ConorSheehan1 / spelling-bee

Free open source version of the New York Times Spelling Bee game
https://spelling-bee-free.pages.dev
MIT License
43 stars 26 forks source link

timezone issues with game date #37

Open ConorSheehan1 opened 10 months ago

ConorSheehan1 commented 10 months ago

Users have reported issues related to new games starting at unexpected times, and getting the same game twice

Possible causes:

  1. Truncating date time here https://github.com/ConorSheehan1/spelling-bee/blob/1dd95c5d3760b7888df616e5d842de9df5035733/src/store.ts#L103 May need to store date + timezone info, and call to isoString for all comparisons already storing gameDate and lastGameDate as date object. Need more info from users https://github.com/ConorSheehan1/spelling-bee/blob/aac7b962daac0aa5c4494233a16b046dc265bfba/src/store.ts#L18
stelcodes commented 2 months ago

I've ran into this bug too and it's pretty frustrating. I'm attempting to fix it rn.