File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
test/intl402/Temporal/TimeZone/from Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ features: [Temporal, time-zone-canonicalization]
8
8
---*/
9
9
10
10
const timeZoneIdentifiers = [
11
+ // IANA TZDB Zone names
11
12
'Africa/Abidjan' ,
12
13
'Africa/Algiers' ,
13
14
'Africa/Bissau' ,
@@ -58,7 +59,7 @@ const timeZoneIdentifiers = [
58
59
'America/Cayenne' ,
59
60
'America/Chicago' ,
60
61
'America/Chihuahua' ,
61
- // 'America/Ciudad_Juarez',
62
+ // 'America/Ciudad_Juarez' // uncomment after Node supports this ID added in TZDB 2022g
62
63
'America/Costa_Rica' ,
63
64
'America/Cuiaba' ,
64
65
'America/Danmarkshavn' ,
@@ -358,6 +359,8 @@ const timeZoneIdentifiers = [
358
359
'Pacific/Tahiti' ,
359
360
'Pacific/Tarawa' ,
360
361
'Pacific/Tongatapu' ,
362
+
363
+ // IANA TZDB Link names
361
364
'WET' ,
362
365
'Africa/Accra' ,
363
366
'Africa/Addis_Ababa' ,
@@ -607,6 +610,11 @@ const timeZoneIdentifiers = [
607
610
'Zulu'
608
611
] ;
609
612
613
+ // We want to test all available named time zone identifiers (both primary and non-primary),
614
+ // but no ECMAScript built-in API exposes that list. So we use a union of two sources:
615
+ // 1. A hard-coded list of Zone and Link identifiers from the 2022g version of IANA TZDB.
616
+ // 2. Canonical IDs exposed by Intl.supportedValuesOf('timeZone'), which ensures that IDs
617
+ // added to TZDB later than 2022g will be tested. (New IDs are almost always added as primary.)
610
618
const ids = [ ...new Set ( [ ...timeZoneIdentifiers , ...Intl . supportedValuesOf ( 'timeZone' ) ] ) ] ;
611
619
for ( const id of ids ) {
612
620
const lower = id . toLowerCase ( ) ;
You can’t perform that action at this time.
0 commit comments