mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 22:15:24 +02:00
Canada/East-Saskatchewan is no longer a valid time zone identifier (tzdata2017c)
This commit is contained in:
parent
5730f10114
commit
f87aeab893
@ -1169,7 +1169,7 @@ function isCanonicalizedStructurallyValidTimeZoneName(timeZone) {
|
|||||||
var fileName = fileNameComponent + "(?:/" + fileNameComponent + ")*";
|
var fileName = fileNameComponent + "(?:/" + fileNameComponent + ")*";
|
||||||
var etcName = "(?:Etc/)?GMT[+-]\\d{1,2}";
|
var etcName = "(?:Etc/)?GMT[+-]\\d{1,2}";
|
||||||
var systemVName = "SystemV/[A-Z]{3}\\d{1,2}(?:[A-Z]{3})?";
|
var systemVName = "SystemV/[A-Z]{3}\\d{1,2}(?:[A-Z]{3})?";
|
||||||
var legacyName = etcName + "|" + systemVName + "|CST6CDT|EST5EDT|MST7MDT|PST8PDT|NZ|Canada/East-Saskatchewan";
|
var legacyName = etcName + "|" + systemVName + "|CST6CDT|EST5EDT|MST7MDT|PST8PDT|NZ";
|
||||||
var zoneNamePattern = new RegExp("^(?:" + fileName + "|" + legacyName + ")$");
|
var zoneNamePattern = new RegExp("^(?:" + fileName + "|" + legacyName + ")$");
|
||||||
|
|
||||||
if (typeof timeZone !== "string") {
|
if (typeof timeZone !== "string") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user