Skip to content

Commit

Permalink
Remove SystemTimeZoneIdentifier changes from spec
Browse files Browse the repository at this point in the history
tc39/proposal-temporal#2607 was approved in the
July 2023 TC39 meeting, which removes the need for this proposal to
change SystemTimeZoneIdentifier.
  • Loading branch information
justingrant committed Jul 15, 2023
1 parent 7fab2bb commit 3d82510
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions spec/timezone.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,10 @@ <h1>Amendments to the ECMAScript® 2024 Language Specification</h1>
Text to be added is marked <ins>like this</ins>, and text to be deleted is marked <del>like this</del>.
</p>
<p>
The changes below are limited to the SystemTimeZoneIdentifier abstract operation, the %Temporal.TimeZone% built-in object, and the abstract operations related to that object.
The changes below are limited to the %Temporal.TimeZone% built-in object and the abstract operations related to that object.
</p>
</emu-note>

<emu-clause id="sec-systemtimezoneidentifier" oldids="sec-defaulttimezone" type="implementation-defined abstract operation">
<h1>SystemTimeZoneIdentifier ( ): a String</h1>
<dl class="header">
<dt>description</dt>
<dd>
It returns a String representing the host environment's current time zone, which is either a primary time zone identifier or an offset time zone identifier.
</dd>
</dl>

<emu-note type="editor">
<p>
Updates to this abstract operation overlap with a Temporal PR (<a href="https://github.com/tc39/proposal-temporal/pull/2607">#2607 - Normative: Limit offset time zones to minutes precision</a>) being presented in the July 2023 TC39 meeting.
If that PR is approved, SystemTimeZoneIdentifier changes will be removed from this proposal.
</p>
</emu-note>

<emu-alg>
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. <ins>Let _offsetNanoseconds_ be ! ParseTimeZoneIdentifier(_systemTimeZoneString_).</ins>
1. <ins>If _offsetNanoseconds_ is not ~empty~, return FormatOffsetTimeZoneIdentifier(_offsetNanoseconds_, ~separated~).</ins>
1. Return _systemTimeZoneString_.
</emu-alg>

<p>[...]</p>
</emu-clause>

<emu-clause id="sec-temporal-timezone-objects">
<h1>Temporal.TimeZone Objects</h1>

Expand Down

0 comments on commit 3d82510

Please sign in to comment.