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
The first three parse as expected, but the last one fails to parse. I would have expected it to be: 2021-04-18T04:41:42.000Z. Looking at the code, it appears the H when parsing uses the twoDigitsOptional regular expression, which only matches if it starts with a digit 1-9, whereas the documentation suggestions that H can parse 0 1 ... 22 23.
The text was updated successfully, but these errors were encountered:
Tested on node 14.15.1:
The first three parse as expected, but the last one fails to parse. I would have expected it to be:
2021-04-18T04:41:42.000Z
. Looking at the code, it appears theH
when parsing uses thetwoDigitsOptional
regular expression, which only matches if it starts with a digit 1-9, whereas the documentation suggestions thatH
can parse0 1 ... 22 23
.The text was updated successfully, but these errors were encountered: