1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:17:35 +00:00

LibJS: Update spec comment in BuiltinTimeZoneGetPlainDateTimeFor

This is an editorial change in the Temporal spec from a long time ago.

See: e480d40
This commit is contained in:
Linus Groh 2022-03-25 18:29:27 +00:00
parent 8fe899e90d
commit 9950f06623

View file

@ -508,7 +508,7 @@ ThrowCompletionOr<PlainDateTime*> builtin_time_zone_get_plain_date_time_for(Glob
// 2. Let offsetNanoseconds be ? GetOffsetNanosecondsFor(timeZone, instant).
auto offset_nanoseconds = TRY(get_offset_nanoseconds_for(global_object, time_zone, instant));
// 3. Let result be ! GetISOPartsFromEpoch(instant.[[Nanoseconds]]).
// 3. Let result be ! GetISOPartsFromEpoch((instant.[[Nanoseconds]])).
auto result = get_iso_parts_from_epoch(instant.nanoseconds());
// 4. Set result to ! BalanceISODateTime(result.[[Year]], result.[[Month]], result.[[Day]], result.[[Hour]], result.[[Minute]], result.[[Second]], result.[[Millisecond]], result.[[Microsecond]], result.[[Nanosecond]] + offsetNanoseconds).