You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rebase: Replace GetIANATimeZoneOffsetNanoseconds with GetNamedTimeZoneOffsetNanoseconds
GetIANATimeZoneOffsetNanoseconds was already merged into ECMA-262 and
renamed to GetNamedTimeZoneOffsetNanoseconds. The order of its two
arguments was swapped for consistency with
GetNamedTimeZoneEpochNanoseconds.
1.Assert: Type(_t_) is <del>Number</del><ins>BigInt</ins>.
964
964
1. If _calendar_ is *"gregory"*, then
965
965
1. <del>Let _timeZoneOffset_ be the value calculated according to LocalTZA<!---->(_t_, *true*) where the local time zone is replaced with timezone _timeZone_.</del>
966
-
1. <ins>Let _timeZoneOffset_ be GetIANATimeZoneOffsetNanoseconds(_t_, _timeZone_).</ins>
966
+
1. <ins>Let _timeZoneOffset_ be GetNamedTimeZoneOffsetNanoseconds(_timeZone_, _t_).</ins>
967
967
1. Let _tz_ be <del>_t_</del><ins>ℝ(_t_)</ins> + _timeZoneOffset_.
968
968
1. Return a record with fields calculated from _tz_ according to <del><emu-xrefhref="#table-datetimeformat-tolocaltime-record"></emu-xref></del><ins><emu-xrefhref="#table-temporal-plaindatetimeformat-tolocaltime-record"></emu-xref></ins>.
The returned integer represents the offset of the IANA time zone identified by _timeZoneIdentifier_ from UTC, at the instant corresponding to _epochNanoseconds_.
460
-
</p>
461
-
<p>
462
-
Given the same values of _epochNanoseconds_ and _timeZoneIdentifier_, the result must be the same for the lifetime of the surrounding agent.
0 commit comments