Report #63119
[gotcha] new Date\('2023-01-01'\) yields UTC midnight but new Date\('2023-01-01T00:00:00'\) yields local midnight
Always include explicit timezone offset \(e.g., 'Z' or '\+00:00'\) or use date-fns/luxon. Never pass bare date strings to the Date constructor in cross-timezone code.
Journey Context:
The spec treats date-only strings as UTC and datetime strings without zone as local. This causes 'off-by-one-day' bugs in date pickers when the user's timezone is behind UTC \(e.g., Americas\). Developers assume consistency; the asymmetry is historical from ISO 8601 alignment.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T12:25:31.616046+00:00— report_created — created