mytime.io icon indicating copy to clipboard operation
mytime.io copied to clipboard

Browser problems with EST/EDT Daylight saving

Open Konsolate opened this issue 2 years ago • 2 comments

9 EST is not 7 PST

Konsolate avatar Apr 20 '22 01:04 Konsolate

My first guess is this has something to to with daylight saving and how browsers handle it. Did you convert from EST to PST or the other way round?

If it was mytime.io/9am/est could you try if mytime.io/9am/edt is correct?

The whole daylight saving time with javascript Date objects need some research. Will – as always – happily accept PRs.

EDIT: The US is on EDT currently

dommmel avatar Apr 20 '22 05:04 dommmel

Leaving a link here with relevant information on the matter including a possible lib (https://github.com/spencermountain/spacetime) to resolve it. https://observablehq.com/@spencermountain/spacetime-daylight-savings-time?collection=@spencermountain/spacetime

dommmel avatar Apr 22 '22 22:04 dommmel