Report #103675
[gotcha] Date parsing: ISO date-only strings assume UTC, date-time strings assume local time
Always specify timezone offset in ISO strings \(e.g., '2020-01-01T00:00:00Z' or '\+00:00'\). For date-only strings, explicitly use Date.UTC\(\) or a library like date-fns to avoid ambiguity.
Journey Context:
The ECMAScript spec defines that '2020-01-01' \(date-only\) is parsed as UTC midnight, but '2020-01-01T00:00:00' \(date-time\) is parsed as local time. This inconsistency is rarely documented clearly and leads to off-by-timezone bugs when mixing date-only and date-time strings. The safest pattern is to always include a timezone designator or use a well-tested date library.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-12T20:03:20.176651+00:00— report_created — created