Skip to content

Commit

Permalink
renamed DefaultTimeZone to SystemTimeZoneIdentifier to match 262
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-allen committed Sep 11, 2023
1 parent 4b2980d commit 7c141b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/annexes.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>Implementation Dependent Behaviour</h1>
The default locale (<emu-xref href="#sec-defaultlocale"></emu-xref>)
</li>
<li>
The default time zone (<emu-xref href="#sup-defaulttimezone"></emu-xref>)
The default time zone (<emu-xref href="#sup-systemtimezoneidentifier"></emu-xref>)
</li>
<li>
The set of available locales for each constructor (<emu-xref href="#sec-internal-slots"></emu-xref>)
Expand Down
2 changes: 1 addition & 1 deletion spec/datetimeformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1>
1. Set _dateTimeFormat_.[[HourCycle]] to _hc_.
1. Let _timeZone_ be ? Get(_options_, *"timeZone"*).
1. If _timeZone_ is *undefined*, then
1. Set _timeZone_ to DefaultTimeZone().
1. Set _timeZone_ to SystemTimeZoneIdentifier().
1. Else,
1. Set _timeZone_ to ? ToString(_timeZone_).
1. If the result of IsValidTimeZoneName(_timeZone_) is *false*, then
Expand Down
8 changes: 4 additions & 4 deletions spec/locales-currencies-tz.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ <h1>IsValidTimeZoneName ( _timeZone_ )</h1>
</emu-clause>

<emu-note>
Any value returned from DefaultTimeZone must be recognized as valid.
Any value returned from SystemTimeZoneIdentifier must be recognized as valid.
</emu-note>

<emu-clause id="sec-canonicalizetimezonename" type="abstract operation">
Expand All @@ -203,16 +203,16 @@ <h1>
</emu-alg>
</emu-clause>

<emu-clause id="sup-defaulttimezone" oldids="sec-defaulttimezone" type="implementation-defined abstract operation">
<h1>DefaultTimeZone ( ): a String</h1>
<emu-clause id="sup-systemtimezoneidentifier" oldids="sup-defaulttimezone,sec-defaulttimezone" type="implementation-defined abstract operation">
<h1>SystemTimeZoneIdentifier ( ): a String</h1>

<dl class="header">
<dt>description</dt>
<dd>It returns a String value representing the host environment's current time zone, which is a valid (<emu-xref href="#sec-isvalidtimezonename"></emu-xref>) and canonicalized (<emu-xref href="#sec-canonicalizetimezonename"></emu-xref>) time zone name.</dd>
</dl>

<p>
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-defaulttimezone"></emu-xref>.
This definition supersedes the definition provided in es2024, <emu-xref href="#sec-systemtimezoneidentifier"></emu-xref>.
</p>
</emu-clause>

Expand Down

0 comments on commit 7c141b2

Please sign in to comment.