Skip to content

Commit

Permalink
Add feature tag for "Time Zone Canonicalization"
Browse files Browse the repository at this point in the history
  • Loading branch information
anba committed Dec 12, 2024
1 parent dc0082c commit 157df57
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 15 deletions.
4 changes: 4 additions & 0 deletions features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ import-defer
# https://github.com/tc39/proposal-iterator-sequencing
iterator-sequencing

# Time Zone Canonicalization
# https://github.com/tc39/proposal-canonical-tz
canonical-tz

## Standard language features
#
# Language features that have been included in a published version of the
Expand Down
1 change: 1 addition & 0 deletions test/intl402/DateTimeFormat/timezone-case-insensitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/*---
esid: sec-initializedatetimeformat
description: Time zone identifiers are case-normalized
features: [canonical-tz]
---*/

const timeZoneIdentifiers = [
Expand Down
1 change: 1 addition & 0 deletions test/intl402/DateTimeFormat/timezone-not-canonicalized.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/*---
esid: sec-initializedatetimeformat
description: Time zone identifiers are not canonicalized before storing in internal slots
features: [canonical-tz]
---*/

const baseOptions = {
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/etc-timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: Some Etc/GMT{+/-}{0}N timezones are valid, but not all
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

// "Etc/GMT-0" through "Etc/GMT-14" are OK
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/from/argument-valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime.from
description: Built-in time zones are parsed correctly out of valid strings
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const valids = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime.from
description: ZonedDateTime.from does not canonicalize time zone IDs
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const calcutta = Temporal.ZonedDateTime.from('2020-01-01T00:00:00+05:30[Asia/Calcutta]');
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/from/etc-timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime.from
description: Some Etc/GMT{+/-}{0}N timezones are valid, but not all
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

// "Etc/GMT-0" through "Etc/GMT-14" are OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime.from
description: Time zone identifiers are case-normalized
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const timeZoneIdentifiers = [
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/iana-legacy-names.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: IANA legacy names must be supported
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const legacyNames = [
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/links-asia.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const testCases = [
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/links-backward.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const testCases = [
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/links-backzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const testCases = [
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/links-etcetera.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const testCases = [
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/links-europe.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const testCases = [
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/links-northamerica.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const testCases = [
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/non-canonical-utc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const testCases = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: Time zone names are case-normalized
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const timeZone = 'eTc/gMt+1';
Expand Down
2 changes: 1 addition & 1 deletion test/intl402/Temporal/ZonedDateTime/timezone-ids-basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*---
esid: sec-temporal.zoneddatetime
description: Basic tests for time zone IDs
features: [Temporal]
features: [Temporal, canonical-tz]
---*/

const valid = [
Expand Down

0 comments on commit 157df57

Please sign in to comment.