reddit_programming 2026-07-24 원문 보기 ↗
Most JavaScript developers have been burned by Date at least once: a report that's off by a day, an invoice that lands in the wrong month, a timezone bug that only appears in certain regions.
A writeup on the main failure modes with production examples:
new Date('2026-07-21') parsed as UTC, displayed as local: date shifts by a day west of UTCnew Date(2026, 7, 21) is Augustset* method mutates in place, including across shared referencesJSON.stringify drops timezone context silentlyEach section also covers what safe Date patterns look like for code that can't migrate yet, and where Temporal fixes the design rather than just adding a wrapper.