A date in a daily browser game is part of the rules. It decides which puzzle opens, which attempt belongs to a streak, and when yesterday’s answers can become visible. A date printed in the header is not enough to define that contract.
A common shortcut is to take new Date().toISOString().slice(0, 10) in the browser. That produces a UTC date. It is only the correct edition key if UTC is actually the reset policy. Another shortcut, using the player’s local date, produces different editions at the same instant for different players. Either can be intentional. The mistake is letting the implementation choose accidentally.
Define the policy before formatting the clock
There are at least three useful policies:
- One global edition, with one stated reset timezone.
- Regional editions, where the player’s region is part of the identifier.
- Rolling practice, which has no daily edition at all.
Write down the choice. For a global edition, a key such as daily:2026-11-30 can be enough. For regional editions, use a namespace such as daily:asia-shanghai:2026-11-30. A practice session should have a different namespace, so it cannot accidentally consume the daily attempt.
For a server-checked game, the server should return the edition identifier. The browser can render a countdown, but its wall clock should not decide which answer set the server accepts.
Test the boundary, not just an ordinary afternoon
Here is a standalone JavaScript check for deriving a calendar date in a named timezone. This is a demonstration, not a claim that all the projects below use this function. I ran the eight checks locally.
import assert from "node:assert/strict"; function editionKey(instant, timeZone) { const date = new Date(instant); if (Number.isNaN(date.getTime())) throw new RangeError("Invalid instant"); const parts = Object.fromEntries(new Intl.DateTimeFormat("en-US", { timeZone, year: "numeric", month: "2-digit", day: "2-digit" }).formatToParts(date).map(({type, value}) => [type, value])); return `${parts.year}-${parts.month}-${parts.day}`; } assert.equal(editionKey("2026-11-30T04:59:59Z", "America/Toronto"), "2026-11-29"); assert.equal(editionKey("2026-11-30T05:00:00Z", "America/Toronto"), "2026-11-30"); assert.equal(editionKey("2026-11-30T04:59:59Z", "Asia/Shanghai"), "2026-11-30"); assert.equal(editionKey("2026-11-30T04:59:59Z", "UTC"), "2026-11-30"); assert.equal(editionKey("2026-03-08T06:59:59Z", "America/Toronto"), "2026-03-08"); assert.equal(editionKey("2026-03-08T07:00:00Z", "America/Toronto"), "2026-03-08"); assert.throws(() => editionKey("not a date", "UTC"), RangeError); assert.throws(() => editionKey("2026-11-30T05:00:00Z", "Unknown/Zone"), RangeError); console.log("8 edition-key checks passed"); The two Toronto checks around 05:00 UTC deliberately straddle local midnight in late November. The Shanghai and UTC checks show why the same instant can belong to different calendar days. The March pair crosses the spring clock change without changing the local calendar date.
This helper does not calculate the next reset instant. Do not add 24 hours to a local-midnight timestamp and assume the result is the following local midnight: daylight-saving changes make that assumption unreliable. Let the service provide nextResetAt, or calculate it with a timezone-aware calendar library.
An archive needs the same identifier
An archive route, an answer page and a saved attempt should refer to the same edition key. Otherwise a browser can display one day’s label while opening another day’s questions.
A useful response shape is:
{ "editionId": "daily:2026-11-30", "displayDate": "2026-11-30", "resetZone": "America/Toronto", "nextResetAt": "2026-12-01T05:00:00Z", "answerVisibility": "after-close" } The visibility field is a policy decision, not a security mechanism. If answers must stay hidden, do not include them in the public response and merely conceal them with CSS. An archived edition should retain its original identity even if the site later changes its reset policy.
Expiry and progress are separate
When a tab resumes after midnight, recheck the active edition before accepting another daily answer. Keep the old attempt attached to its original key. It can become a finished historical attempt or a practice continuation, depending on the game’s rules; it should not silently become today’s score.
For untimed tools, avoid inventing daily expiry. A vehicle checklist or an excavation save usually needs a schema version and save timestamp, not a daily puzzle key. Reusing one “today” variable for all three concerns makes future changes harder.
The projects that make these distinctions useful
I maintain these independent sites, so these are affiliated examples rather than third-party endorsements:
- Poople archive is a word-ladder archive: an old puzzle needs a stable identity, not a label recalculated from the visitor’s current date.
- Movie Krillion is film trivia with daily rounds and practice, where a daily attempt and another practice round are different activities.
- MedRare.app is medical trivia for education and entertainment, not medical advice; answer visibility and ended editions need an explicit rule.
- I Know Your Age is a cultural-memory entertainment quiz. A repeatable quiz does not need to acquire a daily restriction just because other games have one.
- Every Last Grain, independent edition is a browser excavation game, with its own code and content, separate from Oliver Kuso’s original. A saved dune is progress, not a calendar edition.
- LeonidaRides is an unofficial GTA vehicle database and planning tool, not a playable game. Checklist freshness and checklist ownership are separate from daily resets.
The small acceptance test is to open two clients at the same instant, on opposite sides of a timezone boundary. Ask which edition each should see, which identifier a save should keep, and whether yesterday’s answers should be available. If the expected answers cannot be written down before running the code, the reset policy is still incomplete.


