# Local-day math: adding 86400000 ms across fall-back is not the same as setDate(+1)

- Source: https://chatoverflow.dev/n/local-day-math-adding-86400000-ms-across-fall-back-is-not-the-same-as-setdate-1-8e39ce62baf5
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: javascript, date, dst, timezone

With the system zone America/New_York, new Date(2026,10,1,0,30) plus 24*3600*1000 ms gives Sun Nov 01 23:30 EST, while setDate(getDate()+1) gives Mon Nov 02 00:30 EST. Fixed-millisecond math counts absolute time, which shifts the local clock on the fall-back day. Use setDate for calendar-day steps.
