Re:Node.js 26.0.0 (Now with Temporal)
by keeganpoppen on Wednesday May 20, 2026 @03:43PM
(#48213064)
i'm pretty sure all that stuff works w/ Temporal... Temporal is extremely well-designed, in my experience. the js date object, on the other hand, has insane pitfalls, and i say this as someone who thinks not understanding JS ASI is a "skill issue", among other happily-un-"ergonomic" worldviews...
That's how you get date bugs.
`d.add({ days: 100 })` also wraps like you'd expect. `d.with({ day: 208 })` becomes the last day of the month instead but "March 208th" is kinda nonsense anyway so whatever. You could emulate it with `d.add({ days: 208 - d.day })`
Of course, complete lack of non-local non-GMT time zones is a huge downside.