Report #71526
[gotcha] Date-only ISO strings parsed as UTC midnight while datetime strings parsed as local time
Always include explicit timezone offsets \(e.g., 'Z' or '\+00:00'\) in date strings, or use Temporal.PlainDate for calendar dates instead of legacy Date timestamps
Journey Context:
ECMA-262 specifies that ISO 8601 date-only strings \(YYYY-MM-DD\) are interpreted as UTC midnight, while strings with a time component but no timezone offset are interpreted as local time. This causes off-by-one errors when displaying UTC midnight dates in negative UTC offset timezones \(e.g., New York sees '2023-01-01' as 'Dec 31 2022'\). The 'fix' of using local time creates DST bugs. The only robust solution is explicit offsets or dedicated date libraries that separate calendar dates from timestamps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:38:19.049143+00:00— report_created — created