mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-19 01:22:54 +00:00
LibUnicode: Swap the preferred order of standard time zone display names
Our generator is currently preferring the DST variant of the time zone display names over the non-DST variant. LibTimeZone currently does not have DST support, and operates in a mode that basically assumes DST does not exist. Swap the display names for now just to be consistent until we have DST support. Note we will need to generate both of these variants and select the appropriate one at runtime once we have DST support.
This commit is contained in:
parent
8a4ac9c387
commit
bdf02c21e1
Notes:
sideshowbarker
2024-07-17 21:02:45 +09:00
Author: https://github.com/trflynn89
Commit: bdf02c21e1
Pull-request: https://github.com/SerenityOS/serenity/pull/11822
Reviewed-by: https://github.com/linusg
2 changed files with 7 additions and 7 deletions
Meta/Lagom/Tools/CodeGenerators/LibUnicode
|
@ -1468,7 +1468,7 @@ static ErrorOr<void> parse_time_zone_names(String locale_time_zone_names_path, U
|
|||
time_zone_formats.gmt_zero_format = locale_data.unique_strings.ensure(gmt_zero_format_string.as_string());
|
||||
|
||||
auto parse_time_zone = [&](StringView meta_zone, JsonObject const& meta_zone_object) {
|
||||
constexpr auto standard_keys = Array { "daylight"sv, "standard"sv };
|
||||
constexpr auto standard_keys = Array { "standard"sv, "daylight"sv };
|
||||
constexpr auto generic_keys = Array { "generic"sv };
|
||||
|
||||
auto golden_zones = locale_data.meta_zones.find(meta_zone);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue