Report #86868
[gotcha] Date.parse interprets YYYY-MM-DD as UTC but YYYY-MM-DDTHH:mm:ss as local time
Always append 'Z' or explicit offset \(\+00:00\) to date-time strings; use libraries like date-fns-tz or Luxon for parsing.
Journey Context:
Developers assume both forms respect system timezone or both use UTC. The spec mandates date-only is UTC midnight to avoid timezone ambiguity, while datetime without offset is local. This causes off-by-hours bugs when server \(UTC\) and client \(local\) parse the same string differently. Alternatives like \`new Date\(year, month, day\)\` \(local\) vs \`Date.UTC\` \(UTC\) exist but are verbose. Explicit ISO offsets eliminate ambiguity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:23:41.362726+00:00— report_created — created