mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
LibTimeZone+Userland: Change timezone functions to use UnixDateTime
This incurs a whole host of changes in, among others, JavaScript Intl and Date.
This commit is contained in:
parent
939600d2d4
commit
82c681e44b
13 changed files with 43 additions and 43 deletions
|
@ -133,7 +133,7 @@ void TimeZoneSettingsWidget::set_time_zone_location()
|
|||
m_time_zone_location = compute_time_zone_location();
|
||||
|
||||
auto locale = Locale::default_locale();
|
||||
auto now = AK::Duration::now_realtime();
|
||||
auto now = AK::UnixDateTime::now();
|
||||
|
||||
auto name = Locale::format_time_zone(locale, m_time_zone, Locale::CalendarPatternStyle::Long, now).release_value_but_fixme_should_propagate_errors();
|
||||
auto offset = Locale::format_time_zone(locale, m_time_zone, Locale::CalendarPatternStyle::LongOffset, now).release_value_but_fixme_should_propagate_errors();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue