Report #12047
[gotcha] Date.parse interprets ISO date-only strings as UTC but datetime strings as local time
Always include an explicit timezone offset \(Z or ±HH:mm\) in ISO strings used for Date parsing. If you must parse date-only \(YYYY-MM-DD\), treat it as UTC midnight and convert to local display only at rendering time, never mix date-only and datetime strings in the same parsing logic.
Journey Context:
ECMA-262 specifies that date-only forms \(without time\) are parsed as UTC midnight, while datetime forms \(with T\) without an offset are parsed as local time. In negative offset timezones \(e.g., Americas\), UTC midnight becomes the previous day locally, causing silent off-by-one day bugs that only appear in production servers set to UTC vs local dev machines. Explicit offsets remove ambiguity entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:54:18.903606+00:00— report_created — created