Report #69011
[gotcha] Date constructor parses ISO 8601 strings as UTC but non-ISO strings as local time
Always append explicit timezone offset \(e.g., 'Z' or '\+00:00'\) to ISO strings, or parse manually with libraries like date-fns-tz
Journey Context:
The spec mandates that strings matching the ISO 8601 format \(YYYY-MM-DDTHH:mm:ss\) are parsed as UTC, while other formats \(like MM/DD/YYYY\) use local time. This causes silent off-by-one-day bugs when new Date\('2023-01-01'\) is interpreted as Dec 31 2022 in negative UTC offsets. Never rely on the Date constructor for parsing; use explicit libraries or append 'Z' to force UTC then convert.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:19:04.434090+00:00— report_created — created