moment-timezone icon indicating copy to clipboard operation
moment-timezone copied to clipboard

Time is off by -1 hour on a 2099 date when switching from 0.5.25 to 0.5.27

Open bdavis-tc opened this issue 5 years ago • 4 comments

Simplified reproduction code: https://runkit.com/bdavis-tc/5dc43803b63326001b4f6f53

Dates after year 2037 the 0.5.27 version misses the time by an hour. My test date is in the year 2099. Testing against timezone: EST (with Daylight Savings Time)

The 0.5.25 version seems to have accurate time all the way to year 2499.

Not sure if the 0.5.26 and 0.5.27 version introduced a bug, or just changed default behavior for how much data to include.

For now we will stick with 0.5.25, looking to improve my understanding and/or implementation to allow us to use the latest version again.

Thank you!

bdavis-tc avatar Nov 07 '19 15:11 bdavis-tc

This is probably due to the (accidentally?) reduced data size due to a change in release process from 0.5.26 onwards (#768).

gilmoreorless avatar Nov 24 '19 10:11 gilmoreorless

Hi guys, I've lost around 3 hours today due to this :| One of our test dates is 2060 and since v0.5.26 the offset of dates with Europe/Berlin timezone is wrong. It seems to be indeed related to (#768).

micheleangioni avatar Jul 30 '20 13:07 micheleangioni

Following up on this - This problem still persists as of now for me.

andywu0408 avatar Nov 09 '20 20:11 andywu0408

Please look at #921 Fork available at: https://github.com/eramitmittal/moment-timezone

eramitmittal avatar Dec 23 '20 12:12 eramitmittal

Latest moment-timezone (0.5.37) has extended range. In the future we'll release on Linux :) check https://github.com/moment/moment-timezone/issues/999#issuecomment-1229214980

ichernev avatar Aug 27 '22 15:08 ichernev