Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature tag for "Time Zone Canonicalization" #4344

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
Loading