Skip to content

Daylight savings versions of abbreviations #305

@luisldq

Description

@luisldq

Great library! I'm trying to show the DST-aware abbreviation (ex EDT vs EST) of a timezone when the timezone is chosen by IANA city name aka name/group in tzdb based on the current date, but getTimeZones() returns abbreviations all in standard time format (ex EST, not EDT), even though daylight savings time may be in effect for those timezones.

Example:

  • Today, August 20th 2025: getTimeZones() returns records with abbreviations like "EST", "PST", "CST", as opposed to "EDT", "PDT", and "CDT", even though Daylight Savings Time is in effect.

I see there are daylight and standard abbreviations in the abbreviations mapping, but I see no way to get at them from the objects returned by getTimeZones().

Any suggested workarounds? If not, what change needs to be made to getTimeZones() to support this? I may submit a PR if it's not too crazy to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions