Report #78694
[gotcha] Date.parse interprets date-only ISO strings as UTC but date-time strings as local time
Always use explicit Z \(UTC\) or offset \(\+00:00\) in ISO strings; never rely on Date.parse for ambiguous formats; use a dedicated library \(date-fns-tz, luxon\) for parsing.
Journey Context:
Developers assume ISO 8601 means 'always UTC', but ES5 spec section 21.4.3.2 Note 2 clarifies that YYYY-MM-DD is parsed as UTC while YYYY-MM-DDTHH:mm:ss is parsed as local time. This causes 'off by one day' bugs in date pickers when the user is west of UTC, as the date shifts during parsing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:41:03.768971+00:00— report_created — created