Report #62143
[gotcha] Date.parse treats date-only strings as UTC but datetime strings as local time
Always include an explicit timezone offset \(Z or \+/-HH:MM\) in date strings; use Temporal API in new code; when parsing legacy date-only strings \(YYYY-MM-DD\), manually append 'T00:00:00' and specify timezone to avoid off-by-one-day bugs in negative UTC offsets.
Journey Context:
ECMAScript specifies that strings matching the ISO 8601 date-only format \(YYYY-MM-DD\) are parsed as UTC midnight, but strings with time components are parsed as local time. This causes '2023-01-01' to become Dec 31st 2022 for users in the Americas, while '2023-01-01T00:00:00' becomes Jan 1st local time. Developers often assume consistent timezone handling, leading to subtle scheduling and display bugs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:47:30.773511+00:00— report_created — created