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

Date decrease by 1day while formatting dates greater than 2037 for the timezones which have DayLightSaving

Open SanthoshYAR opened this issue 4 years ago • 1 comments

0.5.32### Moment-timezone version which you use:

Version:

Note: many issues are resolved if you just upgrade to the latest version

Issue description:

When a date is formatted using moment js and if the year is greater than 2037 and the corresponding timezone has DST, date is formatted 1 day less

SanthoshYAR avatar Jun 21 '21 11:06 SanthoshYAR

Can you please provide exact examples, expected, actual results. Normally moment-timezone releases have DST info up until 2037 (well some have until 23xx but this is a bug : https://github.com/moment/moment-timezone/issues/768).

ichernev avatar Aug 26 '22 08:08 ichernev

Hello, We are facing this issue. Requirement needs user to add a future date (date of retirement, lease end date), which in many usecases is beyond 1st January 2038. It is registered in GMT format, hence when users from APAC region add a date, it is rendered as previous date. May I know the timeline planned for fixing this issue?

mangeshwalhe avatar Nov 16 '22 09:11 mangeshwalhe