summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2023-03-13 22:28:08 +0100
committerJelle Raaijmakers <jelle@gmta.nl>2023-05-24 23:18:07 +0200
commit82c681e44b57563074e5c12dc7e36134b36ae750 (patch)
tree8617fd279fe87bf44fcb65ffc4add8dca394db97 /Userland/Applications
parent939600d2d4d2d04524301f4373d76dc3c693923a (diff)
downloadserenity-82c681e44b57563074e5c12dc7e36134b36ae750.zip
LibTimeZone+Userland: Change timezone functions to use UnixDateTime
This incurs a whole host of changes in, among others, JavaScript Intl and Date.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp b/Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp
index f3849a4edc..6e18da766f 100644
--- a/Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp
+++ b/Userland/Applications/ClockSettings/TimeZoneSettingsWidget.cpp
@@ -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();