Report #97786
[gotcha] Date.parse treats date-only strings as UTC but datetime strings as local time
Always include an explicit timezone offset \(e.g. '2024-01-01T00:00:00Z' or '\+00:00'\) or use a dedicated library like date-fns-tz; never rely on bare 'YYYY-MM-DD' vs 'YYYY-MM-DDTHH:mm:ss' semantics.
Journey Context:
ECMAScript Date.parse interprets '2024-01-01' as UTC midnight and '2024-01-01T00:00:00' as local midnight. In a negative-offset timezone the date-only form can render as the previous calendar day, producing off-by-one bugs. Teams often assume both forms are local or both are UTC. Explicit offsets or a timezone-aware library remove the ambiguity and keep serialization deterministic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T04:42:00.068714+00:00— report_created — created