It’s About Time! Practical examples of time zones in TypeScript
summary
Practical, code-level takeaways for TypeScript: JavaScript Date is unreliable for time zones, parsers, mutable objects and DST edge cases (one-millisecond add can roll you across DST); use Luxon for immutable, zone-aware DateTime, Duration and Interval types and to preserve or convert offsets; plan storage by keeping user time zone on user-generated timestamps versus UTC for system events; expect the upcoming Temporal polyfill and prefer UTC vs local transparency in logs and UIs.
AI-written summary · about
chapters (13)
- 0:00Time zones in software
- 3:09Politics shaping time zones
- 10:16Time zone challenges
- 13:54JavaScript time zone pitfalls
- 21:43Database datetime storage
- 23:05JavaScript time formats
- 27:37JavaScript time math issues
- 31:14Date object problems
- 33:19Moment.js no longer viable
- 34:21Choosing a datetime library
- 35:24Luxon time zone features
- 42:07Future of JavaScript time with Temporal
- 47:46Key takeaways
related talks
01h 05mWorking with Time is Easy
30mTime Zones for JS (and not only JS) developers
58mIt's Time to Talk About Time
45mEverything You Never Wanted to Know About Time Zones
01h 00mDates and times aren't that hard - honestly!
29mTemporal: Keep Time on Your Side
19mProgramming in the 4th Dimension - Making Time Make Sense
42mWorking with Dates and Times (It's Possible!)
