Report #29269
[gotcha] Date constructor interprets ISO 8601 strings without timezone as UTC but other formats as local time
Always include explicit timezone offset \(Z or \+00:00\) in ISO strings, or use Date.UTC\(\) with explicit year/month/day components; never rely on bare YYYY-MM-DD strings without time components
Journey Context:
ECMA-262 specifies that date-only ISO strings \(YYYY-MM-DD\) are parsed as UTC midnight, while non-ISO formats \(MM/DD/YYYY\) are parsed as local time. This causes off-by-one-day bugs when servers return UTC dates and clients render them in negative UTC offsets. The fix is explicit timezone markers or UTC constructors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:31:15.033728+00:00— report_created — created