Skip to content

fix(timezone): map deprecated IANA aliases to canonical names in guess() - #3226

Open
mmustafasenoglu wants to merge 1 commit into
iamkun:devfrom
mmustafasenoglu:fix/tz-guess-canonical-names
Open

mmustafasenoglu wants to merge 1 commit into
iamkun:devfrom
mmustafasenoglu:fix/tz-guess-canonical-names

Conversation

@mmustafasenoglu

Copy link
Copy Markdown

Fixes #3194

Older ICU builds report legacy names like Asia/Calcutta from Intl, so guess() passed them straight through. It now normalizes known deprecated aliases (from the IANA backward file) to their canonical names, everything else is returned as-is.

Changes:

  • src/plugin/timezone/index.js: alias map + lookup in guess()
  • test/plugin/timezone.test.js: alias mapping and pass-through tests

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tz.guess() returns deprecated IANA alias "Asia/Calcutta" instead of canonical "Asia/Kolkata"

1 participant