Skip to content

Linux Arm64 TimeZoneInfo Duplicate DisplayNames #64111

Open

Description

@mdh1418

Through work to ensure no duplicate display names for timezones on Android, it was discovered that there are duplicates on Linux Arm64.

tzCollection: id America/Punta_Arenas has DisplayName (UTC-03:00) GMT
tzCollection: id America/Nuuk has DisplayName (UTC-03:00) GMT

tzCollection: id Europe/Astrakhan has DisplayName (UTC+04:00) GMT
tzCollection: id Europe/Ulyanovsk has DisplayName (UTC+04:00) GMT
tzCollection: id Europe/Saratov has DisplayName (UTC+04:00) GMT

tzCollection: id Asia/Tomsk has DisplayName (UTC+07:00) GMT
tzCollection: id Asia/Barnaul has DisplayName (UTC+07:00) GMT

On Linux musl x64 and Android x64, for example, the IDs have different display names for

tzCollection: id America/Punta_Arenas has DisplayName (UTC-03:00) Punta Arenas Time

tzCollection: id Europe/Astrakhan has DisplayName (UTC+04:00) Astrakhan Time
tzCollection: id Europe/Ulyanovsk has DisplayName (UTC+04:00) Ulyanovsk Time
tzCollection: id Europe/Saratov has DisplayName (UTC+04:00) Saratov Time

tzCollection: id Asia/Tomsk has DisplayName (UTC+07:00) Tomsk Time
tzCollection: id Asia/Barnaul has DisplayName (UTC+07:00) Barnaul Time

Full list of GetSystemTimeZone IDs and DIsplayNames https://gist.github.com/mdh1418/a2dca0098fea5af098fcee92639b6515

Activity

  1. ghost added
    untriaged
    on Jan 21, 2022
  2. added and removed
    untriaged
    on Jan 23, 2022
  3. added this to the Future milestone on Jan 23, 2022
  4. added
    enhancement
    on Jan 23, 2022
  5. tarekgh commented on Jan 23, 2022

    @tarekgh
    Member

    @mattjohnsonpint do you think there is a way we can distinguish the display names for the listed zones?

  6. mattjohnsonpint commented on Jan 24, 2022

    @mattjohnsonpint
    Contributor

    I don't quite understand why it would matter that it's Arm64. Could it just be that the machine had an outdated version of ICU or its data?

    That said, it's really bad that the display name is "GMT". That shouldn't ever be there. If for some reason we can't get a true display name, we should fall back to using the IANA ID, for example "(UTC+04:00) Europe/Astrakhan"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-arm64area-System.DateTimeenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions