Skip to content

v1.5.3: Fix DST bug in daily puzzle numbering

Choose a tag to compare

@aebrer aebrer released this 09 Mar 13:14
· 5 commits to master since this release
cdae117

Fix daily puzzle number repeating after DST spring-forward.

getDailyNumber() used local-time Date objects for millisecond arithmetic, which loses an hour across DST boundaries. Switched to Date.UTC() for the day-count arithmetic — the standard DST-safe approach for calendar date differences in vanilla JS.