-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DST] Wrong date when adding one day #593
Comments
FYI: this happens because data/latest.json contains invalid dates of time change for
Time change was on 2018-02-18 this February, but next time change will be not on Because of that, when user adds +1 day, it adds +1 day and -1 hour (library thinks that time change happens on 2018-10-21) so user gets same day 23:00 |
This PR will deliver updated data #577 |
@AndreLorenz in moment-timezone 0.5.16 this problem does not happen for
I'll post more info about this issue later. |
I am experiencing this issue as well. Any chance this could get fixed soon? |
Duplicate of #409. Tracking there. Thanks. |
Hello!!
I need to add one day before DST, but when I set moment.tz.setDefault to "America/Sao_Paulo" and add one day to October 20, 2018 the moment returns the same day at 11:00PM instead of October 21, 2018 at 01:00AM.
Already when I reset tz (setDefault()) it returns the correct date.
Workaround for this issue:
Thanks
The text was updated successfully, but these errors were encountered: