-
Notifications
You must be signed in to change notification settings - Fork 7k
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
parseZone(s) differs from moment(s).utcOffset(s); #3520
Comments
I'm seeing the same. I've also observed discrepancies for any offset within a 15-minute range of 00:00. In those cases, moment.parseZone reinterprets the offset as hours instead of minutes.
I'd expect EnvironmentChrome 53.0.2785.143 on Windows 10 Other info
|
We have a couple of different |
The original issue here is fixed in 2.16.0. @TimHambourger's additional issue still happens. |
pr #3643 |
[bugfix] Fixes #3520, parseZone incorrectly handled minutes under 16
Description of the Issue and Steps to Reproduce:
moment.parseZone does not produce same results as mentioned in parseZone() Docs. The docs state that moment.parseZone is equivalent to parsing the string and using moment#utcOffset. This fails with /-00:00. Example below:
Environment:
Node 6.6.0 on OSX
Other information
The text was updated successfully, but these errors were encountered: