Skip to content

Incorrect local time zone reported on macOS #103196

Open
@filipnavara

Description

@filipnavara

Steps to repro:

  • Set macOS time zone to "Phoenix, AZ" / "Mountain Standard Time"
    image
  • Verify that local time points to the correct time zone:
> ls -l /etc/localtime 
lrwxr-xr-x  1 root  wheel  41 Jun  8 00:12 /etc/localtime -> /var/db/timezone/zoneinfo/America/Phoenix
  • Print TimeZoneInfo.Local.Id in .NET code

Actual result:

  • TimeZoneInfo.Local.Id reports America/Creston

Expected result:

  • TimeZoneInfo.Local.Id reports America/Phoenix

Notes:

  • America/Creston is a deprecated alias in TZ DB data

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions