mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibJS: Port create_temporal_time_zone() to String
This commit is contained in:
parent
ae98eddc9f
commit
5a2dfc52f8
7 changed files with 17 additions and 16 deletions
|
@ -250,7 +250,7 @@ ThrowCompletionOr<String> temporal_instant_to_string(VM& vm, Instant& instant, V
|
|||
// 4. If outputTimeZone is undefined, then
|
||||
if (output_time_zone.is_undefined()) {
|
||||
// a. Set outputTimeZone to ! CreateTemporalTimeZone("UTC").
|
||||
output_time_zone = MUST(create_temporal_time_zone(vm, "UTC"sv));
|
||||
output_time_zone = MUST_OR_THROW_OOM(create_temporal_time_zone(vm, "UTC"sv));
|
||||
}
|
||||
|
||||
// 5. Let isoCalendar be ! GetISO8601Calendar().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue