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
In the documentation (and examples), Z is "+####" and ZZ is "+ZZ:ZZ", however the actual implementation is reversed. It doesn't appear that it makes a difference when passing in a date with Z or ZZ to be read, however for .format() it does make a difference, since Z is outputting "+##:##" whereas ZZ is outputting "+####", contradicting the documentation.
The text was updated successfully, but these errors were encountered:
My apologizes, I saw this on the documentation page:
...
Z, ZZ Timezone offset as +0700 or +07:30 [read as Z = +0700 and ZZ = +07:30, due to the order on the page]
...
moment("2010-10-20 4:30 +0000", "YYYY-MM-DD HH:mm Z"); // parsed as 4:30 GMT
And didn't go to the tokens later that detailed them the way you described. Thank you for your time.
In the documentation (and examples), Z is "+####" and ZZ is "+ZZ:ZZ", however the actual implementation is reversed. It doesn't appear that it makes a difference when passing in a date with Z or ZZ to be read, however for .format() it does make a difference, since Z is outputting "+##:##" whereas ZZ is outputting "+####", contradicting the documentation.
The text was updated successfully, but these errors were encountered: