You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the bug was that when using moment.utc with a string and a format, the parser was adding +0000 to the string and Z to the format. This needs to happen so that the parser parses into utc, however, it shouldnt be added if there is already a timezone in the string.
We already had this check for auto parsing iso8601, so i just moved it up so that string+format gets it as well.
This is a regression of Issue #147 in Moment 1.6.0
When parsing a date with a timezone offset "-0700" the offset is not applied.
Example:
Output in Moment 1.6.0-1.6.2
Output in Moment 1.5.1
This was working fine in moment 1.5, but is now broken in moment 1.6
The text was updated successfully, but these errors were encountered: