apstanisic / zmaj

Zmaj is a headless CMS for managing database
https://zmaj.vercel.app
MIT License
5 stars 0 forks source link

How to handle `ms` package and daylight saving time #64

Open apstanisic opened 1 year ago

apstanisic commented 1 year ago

Since ms returns milliseconds, if I add 3h worth of ms to Date, it can make it 3h normally, but it can also be 2h or 4h if daylight saving is applied in that hour.

Can that even git me date in the past?