Add feature tag for "Time Zone Canonicalization"

This commit is contained in:
André Bargull 2024-12-12 18:50:25 +01:00 committed by Philip Chimento
parent 2ea91c02d0
commit 75fddbd694
18 changed files with 21 additions and 15 deletions

View File

@ -92,6 +92,10 @@ import-defer
# https://github.com/tc39/proposal-iterator-sequencing # https://github.com/tc39/proposal-iterator-sequencing
iterator-sequencing iterator-sequencing
# Time Zone Canonicalization
# https://github.com/tc39/proposal-canonical-tz
canonical-tz
## Standard language features ## Standard language features
# #
# Language features that have been included in a published version of the # Language features that have been included in a published version of the

View File

@ -4,6 +4,7 @@
/*--- /*---
esid: sec-initializedatetimeformat esid: sec-initializedatetimeformat
description: Time zone identifiers are case-normalized description: Time zone identifiers are case-normalized
features: [canonical-tz]
---*/ ---*/
const timeZoneIdentifiers = [ const timeZoneIdentifiers = [

View File

@ -4,6 +4,7 @@
/*--- /*---
esid: sec-initializedatetimeformat esid: sec-initializedatetimeformat
description: Time zone identifiers are not canonicalized before storing in internal slots description: Time zone identifiers are not canonicalized before storing in internal slots
features: [canonical-tz]
---*/ ---*/
const baseOptions = { const baseOptions = {

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: Some Etc/GMT{+/-}{0}N timezones are valid, but not all 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 // "Etc/GMT-0" through "Etc/GMT-14" are OK

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime.from esid: sec-temporal.zoneddatetime.from
description: Built-in time zones are parsed correctly out of valid strings description: Built-in time zones are parsed correctly out of valid strings
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const valids = [ const valids = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime.from esid: sec-temporal.zoneddatetime.from
description: ZonedDateTime.from does not canonicalize time zone IDs 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]'); const calcutta = Temporal.ZonedDateTime.from('2020-01-01T00:00:00+05:30[Asia/Calcutta]');

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime.from esid: sec-temporal.zoneddatetime.from
description: Some Etc/GMT{+/-}{0}N timezones are valid, but not all 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 // "Etc/GMT-0" through "Etc/GMT-14" are OK

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime.from esid: sec-temporal.zoneddatetime.from
description: Time zone identifiers are case-normalized description: Time zone identifiers are case-normalized
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const timeZoneIdentifiers = [ const timeZoneIdentifiers = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: IANA legacy names must be supported description: IANA legacy names must be supported
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const legacyNames = [ const legacyNames = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const testCases = [ const testCases = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const testCases = [ const testCases = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const testCases = [ const testCases = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const testCases = [ const testCases = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const testCases = [ const testCases = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const testCases = [ const testCases = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: ZonedDateTime constructor accepts link names as time zone ID input description: ZonedDateTime constructor accepts link names as time zone ID input
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const testCases = [ const testCases = [

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: Time zone names are case-normalized description: Time zone names are case-normalized
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const timeZone = 'eTc/gMt+1'; const timeZone = 'eTc/gMt+1';

View File

@ -4,7 +4,7 @@
/*--- /*---
esid: sec-temporal.zoneddatetime esid: sec-temporal.zoneddatetime
description: Basic tests for time zone IDs description: Basic tests for time zone IDs
features: [Temporal] features: [Temporal, canonical-tz]
---*/ ---*/
const valid = [ const valid = [