Skip to content

Where can I find a list of Local with the full country code(Bonus for including the timezone)? #3282

Answered by fturmel
Oceanestars asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know why it didn't get accepted, but PR #2838 was meant to add a dedicated page in the docs for this.

It's a bit outdated now, but you can preview the Markdown output of the PR here: https://github.com/date-fns/date-fns/blob/af38b9eb940cdceae62e8742fd67161b47740bde/docs/i18nLocales.md

Time zones and locales are distinct things.

date-fns uses the Unicode CLDR as a reference for locales
https://en.wikipedia.org/wiki/Common_Locale_Data_Repository

And time zones in the JavaScript runtimes and Intl are based on the IANA time zone database
https://www.iana.org/time-zones
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Hope that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Oceanestars
Comment options

Answer selected by Oceanestars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants