| 1 |
From: Iain Lane <[email protected]> |
| 2 |
Date: Mon, 17 Feb 2020 13:40:37 +0100 |
| 3 |
Subject: time-zone-path test: Update for what our system ICU returns |
| 4 |
|
| 5 |
1) I'm not sure what "/this-part-is-ignored/" is meant to mean, looks |
| 6 |
like a path to the zoneinfo file? |
| 7 |
2) When handled by ICU, these return offsets and not timezone names. |
| 8 |
|
| 9 |
Upstream issue: https://phabricator.services.mozilla.com/D5827 |
| 10 |
|
| 11 |
Forwarded: no (but should be) |
| 12 |
--- |
| 13 |
js/src/tests/non262/Date/time-zone-path.js | 10 +++++----- |
| 14 |
1 file changed, 5 insertions(+), 5 deletions(-) |
| 15 |
|
| 16 |
diff --git a/js/src/tests/non262/Date/time-zone-path.js b/js/src/tests/non262/Date/time-zone-path.js |
| 17 |
index 3422022..86a14a4 100644 |
| 18 |
--- a/js/src/tests/non262/Date/time-zone-path.js |
| 19 |
+++ b/js/src/tests/non262/Date/time-zone-path.js |
| 20 |
@@ -17,13 +17,13 @@ assertEq(timeZoneName(), "Eastern European Summer Time"); |
| 21 |
setTimeZone("::Europe/London"); // two colons, invalid |
| 22 |
assertEq(timeZoneName(), "Coordinated Universal Time"); |
| 23 |
|
| 24 |
-setTimeZone("/this-part-is-ignored/zoneinfo/America/Chicago"); |
| 25 |
-assertEq(timeZoneName(), "Central Daylight Time"); |
| 26 |
+setTimeZone("/usr/share/zoneinfo/America/Chicago"); |
| 27 |
+assertEq(timeZoneName(), "GMT-06:00"); |
| 28 |
|
| 29 |
-setTimeZone(":/this-part-is-ignored/zoneinfo/America/Phoenix"); |
| 30 |
-assertEq(timeZoneName(), "Mountain Standard Time"); |
| 31 |
+setTimeZone(":/usr/share/zoneinfo/America/Phoenix"); |
| 32 |
+assertEq(timeZoneName(), "GMT-07:00"); |
| 33 |
|
| 34 |
-setTimeZone("::/this-part-is-ignored/zoneinfo/America/Los_Angeles"); // two colons, invalid |
| 35 |
+setTimeZone("::/usr/share/zoneinfo/America/Los_Angeles"); // two colons, invalid |
| 36 |
assertEq(timeZoneName(), "Coordinated Universal Time"); |
| 37 |
|
| 38 |
if (typeof reportCompare === "function") |