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
moment.tz.setDefault();t.ok(Number.isNaN(moment("2023/10/06",["H","HH","HH:mm"],true).valueOf()),);moment.tz.setDefault('America/New_York');// not expectedt.ok(Number.isNaN(moment("2023/10/06",["H","HH","HH:mm"],true).valueOf()),);
Issue description
when defaultZone is specified, valueOf will return a value even though it's invalid.
Environment
Issue description
when defaultZone is specified,
valueOf
will return a value even though it's invalid.it seems to be caused by:
moment-timezone/moment-timezone.js
Lines 643 to 646 in dffed7a
a fix that works:
The text was updated successfully, but these errors were encountered: