Home Programming Article

Temporal Reaches Stage 2.7: Nine-Year Journey to Fix JavaScript Dates

TL;DR

Temporal, a comprehensive date/time API redesign, advances through TC39 stages after nine years of standardization work, addressing three decades of JavaScript Date footguns.

Key Points

  • Temporal introduces multiple purpose-built types (ZonedDateTime, Instant, PlainDate) replacing JavaScript's problematic single Date object
  • Nanosecond precision timestamps and first-class timezone/calendar support eliminate common developer mistakes with DST and locale handling
  • Bloomberg partnered with Igalia on sustained funding and engineering to move proposal forward, with champions from Google, Microsoft, and volunteer contributors
  • Datetime libraries currently receive 100+ million weekly downloads; Temporal aims to make them unnecessary through native language support

Why It Matters

JavaScript's Date API has been a source of bugs and workarounds for 30 years. Temporal's standardization means developers can stop relying on external libraries (reducing bundle size), avoid timezone/DST bugs through proper type semantics, and handle complex calendar systems natively. For financial systems, fintech, and any timezone-aware application, this eliminates entire categories of subtle timing bugs.
Read the full technical deep-dive

Source: bloomberg.github.io