2 ms·
Actually, the JS specification doesn't constrain the date parser except to require that ISO 8601 dates must be accepted, so it differs from JS engine to JS engi
by jcranmer 11y ago
Actually, the JS specification doesn't constrain the date parser except to require that ISO 8601 dates must be accepted, so it differs from JS engine to JS engine. I'm guessing you're testing in V8, since my SpiderMonkey test right now gave Invalid Date for both of those.
It got really annoying for me because the ISO 8601 portion of the parser refused to accept leap seconds but non-ISO-8601 forms (such as RFC 5322) did.