From a5bfa66a1e1d40eb4979f90088b1f9a5c780bd4b Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 1 Jun 2023 14:57:38 -0400 Subject: [PATCH 1/2] Normative: Limit time zone offset precision to minutes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This aligns with https://www.ietf.org/archive/id/draft-ietf-sedate-datetime-extended-08.html#section-4 , which allows expression of UTC offsets per RFC 3339 `time-numoffset`. https://www.rfc-editor.org/rfc/rfc3339#section-5.6 > time-minute = 2DIGIT ; 00-59 > … > time-numoffset = ("+" / "-") time-hour ":" time-minute --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index 137adf3bde..fc0bd82aee 100644 --- a/spec.html +++ b/spec.html @@ -32221,7 +32221,7 @@

DefaultTimeZone ( ): a String

description
-
It returns a String value representing the host environment's current time zone, which is either a String representing a UTC offset for which IsTimeZoneOffsetString returns *true*, or a String identifier accepted by GetNamedTimeZoneEpochNanoseconds and GetNamedTimeZoneOffsetNanoseconds.
+
It returns a String value representing the host environment's current time zone, which is either a String representing a UTC offset for which IsTimeZoneOffsetString returns *true* and ParseTimeZoneOffsetString returns an integer evenly divisible by 6 × 1010 (i.e., an offset in which all units smaller than minutes are 0), or a String identifier accepted by GetNamedTimeZoneEpochNanoseconds and GetNamedTimeZoneOffsetNanoseconds.

An ECMAScript implementation that includes the ECMA-402 Internationalization API must implement the DefaultTimeZone abstract operation as specified in the ECMA-402 specification.

From b2c947a8a3f4e0758ebaa235812989dd4c83a0fe Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Wed, 30 Aug 2023 17:18:28 -0400 Subject: [PATCH 2/2] fixup! Normative: Limit time zone offset precision to minutes --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index fc0bd82aee..5e31a2737b 100644 --- a/spec.html +++ b/spec.html @@ -32221,7 +32221,7 @@

DefaultTimeZone ( ): a String

description
-
It returns a String value representing the host environment's current time zone, which is either a String representing a UTC offset for which IsTimeZoneOffsetString returns *true* and ParseTimeZoneOffsetString returns an integer evenly divisible by 6 × 1010 (i.e., an offset in which all units smaller than minutes are 0), or a String identifier accepted by GetNamedTimeZoneEpochNanoseconds and GetNamedTimeZoneOffsetNanoseconds.
+
It returns a String _id_ representing the host environment's current time zone as either an offset time zone or as an available named time zone identifier. In the former case, IsTimeZoneOffsetString(_id_) returns *true* and ParseTimeZoneOffsetString(_id_) returns an integer evenly divisible by 6 × 1010 (i.e., any second and fractional second units in _id_ are 0). In the latter case, the result from AvailableNamedTimeZoneIdentifiers() contains a Time Zone Identifier Record _r_ such that _r_.[[Identifier]] is _id_, and _id_ is valid as the first argument to GetNamedTimeZoneEpochNanoseconds and GetNamedTimeZoneOffsetNanoseconds.

An ECMAScript implementation that includes the ECMA-402 Internationalization API must implement the DefaultTimeZone abstract operation as specified in the ECMA-402 specification.