mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00

While formal ISO dates must have 4-digit years, implementations tend to allow dates up until +275760-09-13T00:00:00Z per the TimeClip algorithm: * https://tc39.es/ecma262/#sec-timeclip * https://tc39.es/ecma262/#sec-utc-t As well as cases such as "1995-09-26 09:00 EST" where the time and timezone are specified as with any other date. This patch also adds support for formats like "1-12-20" or "1-12-2012". The date is returned in localtime, but the limit is processed in GMT. Differential Revision: https://phabricator.services.mozilla.com/D189895