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
If you do a strict parse of a date where the format specified has the 'hh' token in it and the hour part of the date-to-be-parsed is '00', moment will report it as an invalid date
If you do a strict parse of a date where the format specified has the 'hh' token in it and the hour part of the date-to-be-parsed is '00', moment will report it as an invalid date
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Both of those examples should be accepted as valid dates.
It appears that in moment.js, at approximately line #158, the validity of the date is dependent upon setting bigHour to undefined.
At apprimately line #2529, you have a block of code that looks like this:
It looks like 0 should be included in the range so that bigHour will get set to undefined, i.e., the code should look like this:
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: