Skip to content

Commit abf3db8

Browse files
committed
Normative: SystemTimeZoneIdentifier normal offsets
This commit adds prose to clarify that if SystemTimeZoneIdentifier returns an offset time zone identifier, then it should be in normal form like "-05:00" not "-0500" nor "-05". No current implementations support returning offset strings in non- normal form today, so although this commit is normative, it won't break any existing ECMAScript code nor will it require changes to any current implementation.
1 parent 3977e33 commit abf3db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mainadditions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ <h1>SystemTimeZoneIdentifier ( ): a String</h1>
283283

284284
<emu-alg>
285285
1. If the implementation only supports the UTC time zone, return *"UTC"*.
286-
1. [declared="s"] 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.
286+
1. [declared="s"] 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<ins> String _s_ for which ParseText(StringToCodePoints(_s_), |NormalizedUTCOffset|) returns a Parse Node</ins>.
287287
1. <del>If IsTimeZoneOffsetString(_systemTimeZoneString_) is *true*, return _systemTimeZoneString_.</del>
288288
1. Return _systemTimeZoneString_.
289289
</emu-alg>

0 commit comments

Comments
 (0)