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
After briefly looking into the code, the invalid date is coming from moment.utc.apply(null, ['Tuesday 01:03', 'dddd HH:mm']);. I closed this ticket in favor of moment/moment#4227
Example statements
Either read below or see them in action on my JSFiddle. Note: the invalid date edge case seems to depend on your current system time, so they might not display as Invalid at all times.
Edge case errors. All statements below return invalid date.
EDIT:
After briefly looking into the code, the invalid date is coming from
moment.utc.apply(null, ['Tuesday 01:03', 'dddd HH:mm']);
. I closed this ticket in favor of moment/moment#4227Example statements
Either read below or see them in action on my JSFiddle. Note: the invalid date edge case seems to depend on your current system time, so they might not display as Invalid at all times.
Edge case errors. All statements below return invalid date.
Times 07:00 and later as well as date strings without the day of week are parsed correctly. All statements below return valid dates.
Moment without timezone returns a valid date.
The text was updated successfully, but these errors were encountered: