2022-07-26 20:12:45 +02:00
|
|
|
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: sec-temporal.timezone
|
|
|
|
description: IANA legacy names must be supported
|
|
|
|
features: [Temporal]
|
|
|
|
---*/
|
|
|
|
|
|
|
|
const legacyNames = [
|
2023-07-21 00:05:03 +02:00
|
|
|
"Etc/GMT0",
|
|
|
|
"GMT0",
|
|
|
|
"GMT-0",
|
|
|
|
"GMT+0",
|
|
|
|
"EST5EDT",
|
|
|
|
"CST6CDT",
|
|
|
|
"MST7MDT",
|
|
|
|
"PST8PDT"
|
2022-07-26 20:12:45 +02:00
|
|
|
];
|
|
|
|
|
2023-07-21 00:05:03 +02:00
|
|
|
legacyNames.forEach((arg) => {
|
2022-07-26 20:12:45 +02:00
|
|
|
const tz = new Temporal.TimeZone(arg);
|
2023-07-21 00:05:03 +02:00
|
|
|
assert.sameValue(tz.toString(), arg, `"${arg}" does not match "${tz.toString()}" time zone identifier`);
|
2022-07-26 20:12:45 +02:00
|
|
|
});
|