~/talk

The Past, Present, and Future of JavaScript Date and Time APIs

Talkat JSConf EU 2017 · on Sunday, 2017-05-07· [web-platform, javascript]
github:mj1856
slides:none on file

Shows why the built‑in Date is broken with concrete demos: an HTML5 date input parses to the wrong day because date-only treated as UTC, adding one month yields March 2 in some time zones because of overflow plus UTC conversion, and start‑of‑day isn’t always midnight across DST. Compares Moment (mutable, widely used), date‑fns (small modular functions), and js‑joda (immutable, Joda model), cites Stage 1 ECMAScript work, and proposes fixes like zero-based months becoming 1‑based and an immutable mutable API replacement for scheduling correctness.

AI-written summary · about

  1. 0:00Start
  2. 1:56What is a Date object anyway?
  3. 2:06Demo
  4. 6:38In the beginning...
  5. 8:05What is wrong with the Date object?
  6. 10:22Ok, one more for the lulz...
  7. 11:47The Rise of the Date Time Libraries
  8. 16:18js-joda
  9. 19:40Examples
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.