Skip to content
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

Sao Paulo timezone off by 1 hour #399

Closed
mwbrooks opened this issue Oct 16, 2016 · 2 comments
Closed

Sao Paulo timezone off by 1 hour #399

mwbrooks opened this issue Oct 16, 2016 · 2 comments

Comments

@mwbrooks
Copy link

I've noticed that the Sao Paulo time zone shifted by one hour today:
https://www.timeanddate.com/time/change/brazil/sao-paulo

Unfortunately, Moment is having an issue working with this time zone. Here is the example that I've experienced:

// Today is Sat Oct 15 2016

// Expect "Sat Oct 16 2016 00:00:00 GMT-0300"
moment().tz('America/Sao_Paulo').startOf('day').add(1, 'day').toLocaleString()
// Return "Sat Oct 15 2016 23:00:00 GMT-0300"

On the other hand, a time zone such as New York is correct:

// Today is Sat Oct 15 2016

// Expect "Sun Oct 16 2016 00:00:00 GMT-0400"
moment().tz('America/New_York').startOf('day').add(1, 'day').toLocaleString()
// Return "Sun Oct 16 2016 00:00:00 GMT-0400"

Using moment-timezone@0.5.6

Cheers,
Michael

@maggiepint
Copy link
Member

This bug is known and is in moment core. moment/moment#3132

@mwbrooks
Copy link
Author

@maggiepint great, thanks Maggie!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants