Thanks to visit codestin.com
Credit goes to github.com

Skip to content

UTC timezone's name does not match README.md #272

@alexkuc

Description

@alexkuc

According to readme, when using parameter includeUtc, utc time zone can be found under UTC:

tzdb/README.md

Lines 35 to 37 in 23081e3

// You can also provide an optional parameter to include UTC in the result.
// This adds a time zone with the name "UTC" and a fixed offset of 0.
const timeZonesWithUtc = getTimeZones({ includeUtc: true });

However, through trial and error, I found out it is actually Etc/UTC and not just UTC:

https://codesandbox.io/s/suspicious-david-945pw3?file=/src/App.tsx

Is it supposed to be UTC or Etc/UTC? If it's the second, I can submit PR to update docs.

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