LibJS: Allow formatting UTC-offset time zones with Intl.DateTimeFormat

These are normative changes in the ECMA-402 spec. See:
https://github.com/tc39/ecma402/commit/896ffcc
https://github.com/tc39/ecma402/commit/af4ec46
https://github.com/tc39/ecma402/commit/e25c455

(This combines the above commits into one patch as they each do not work
on their own).
This commit is contained in:
Timothy Flynn
2023-10-04 15:45:59 -04:00
committed by Andreas Kling
parent f31540e419
commit 39be5cb73a
Notes: sideshowbarker 2024-07-17 08:59:18 +09:00
7 changed files with 123 additions and 42 deletions

View File

@@ -41,5 +41,6 @@ enum class OptionDefaults {
};
ThrowCompletionOr<NonnullGCPtr<DateTimeFormat>> create_date_time_format(VM&, FunctionObject& new_target, Value locales_value, Value options_value, OptionRequired, OptionDefaults);
String format_offset_time_zone_identifier(double offset_minutes);
}