mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Remove Temporal::DefaultTimeZone
This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/e232580
This commit is contained in:
committed by
Linus Groh
parent
735e1c4e20
commit
d992cba014
@@ -54,14 +54,6 @@ String canonicalize_time_zone_name(String const& time_zone)
|
||||
return *iana_time_zone;
|
||||
}
|
||||
|
||||
// 11.1.3 DefaultTimeZone ( ), https://tc39.es/proposal-temporal/#sec-defaulttimezone
|
||||
// 15.1.3 DefaultTimeZone ( ), https://tc39.es/proposal-temporal/#sup-defaulttimezone
|
||||
String default_time_zone()
|
||||
{
|
||||
// The DefaultTimeZone abstract operation returns a String value representing the valid (11.1.1) and canonicalized (11.1.2) time zone name for the host environment's current time zone.
|
||||
return ::TimeZone::current_time_zone();
|
||||
}
|
||||
|
||||
// 11.6.1 CreateTemporalTimeZone ( identifier [ , newTarget ] ), https://tc39.es/proposal-temporal/#sec-temporal-createtemporaltimezone
|
||||
ThrowCompletionOr<TimeZone*> create_temporal_time_zone(VM& vm, String const& identifier, FunctionObject const* new_target)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user