mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
Userland: Move files destined for LibLocale to the Locale namespace
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 07:30:06 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/ff48220dca Pull-request: https://github.com/SerenityOS/serenity/pull/15096 Reviewed-by: https://github.com/linusg ✅
@@ -125,11 +125,11 @@ void TimeZoneSettingsWidget::set_time_zone_location()
|
||||
{
|
||||
m_time_zone_location = compute_time_zone_location();
|
||||
|
||||
auto locale = Unicode::default_locale();
|
||||
auto locale = Locale::default_locale();
|
||||
auto now = AK::Time::now_realtime();
|
||||
|
||||
auto name = Unicode::format_time_zone(locale, m_time_zone, Unicode::CalendarPatternStyle::Long, now);
|
||||
auto offset = Unicode::format_time_zone(locale, m_time_zone, Unicode::CalendarPatternStyle::LongOffset, now);
|
||||
auto name = Locale::format_time_zone(locale, m_time_zone, Locale::CalendarPatternStyle::Long, now);
|
||||
auto offset = Locale::format_time_zone(locale, m_time_zone, Locale::CalendarPatternStyle::LongOffset, now);
|
||||
|
||||
m_time_zone_text = String::formatted("{}\n({})", name, offset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user