From 781a7c75e5c85b9fe276b46bedf81c09cfd45a43 Mon Sep 17 00:00:00 2001 From: Justin Grant Date: Wed, 21 Jun 2023 00:09:26 -0700 Subject: [PATCH] Editorial: align SystemTimeZoneIdentifier to 262 This commit rebases one line of SystemTimeZoneIdentifier on https://github.com/tc39/ecma262/pull/3104. --- spec/timezone.html | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/spec/timezone.html b/spec/timezone.html index c38ee2b8..120729b5 100644 --- a/spec/timezone.html +++ b/spec/timezone.html @@ -29,17 +29,11 @@

SystemTimeZoneIdentifier ( ): a String

1. If the implementation only supports the UTC time zone, return *"UTC"*. 1. Let _systemTimeZoneString_ be the String representing the host environment's current time zone, either a primary time zone identifier or an offset time zone identifier. - 1. If IsTimeZoneOffsetString(_systemTimeZoneString_) is *true*, return _systemTimeZoneString_CanonicalizeTimeZoneOffsetString(_systemTimeZoneString_). + 1. If IsTimeZoneOffsetString(_systemTimeZoneString_) is *true*, return CanonicalizeTimeZoneOffsetString(_systemTimeZoneString_). 1. Return _systemTimeZoneString_. - -

- To ensure the level of functionality that implementations commonly provide in the methods of the Date object, it is recommended that SystemTimeZoneIdentifier return an IANA time zone name corresponding to the host environment's time zone setting, if such a thing exists. - GetNamedTimeZoneEpochNanoseconds and GetNamedTimeZoneOffsetNanoseconds must reflect the local political rules for standard time and daylight saving time in that time zone, if such rules exist. -

-

For example, if the host environment is a browser on a system where the user has chosen US Eastern Time as their time zone, SystemTimeZoneIdentifier returns *"America/New_York"*.

-
+

[...]