Skip to content

Add a white list for deprecated timezone IDs #204

Merged
marcospri merged 3 commits intomasterfrom
check-tz-ids-match-names
Jan 8, 2026
Merged

Add a white list for deprecated timezone IDs #204
marcospri merged 3 commits intomasterfrom
check-tz-ids-match-names

Conversation

@marcospri
Copy link
Contributor

to ensure they are included in the timezone name to ID mapping.

Alternatively we could use pytz.all_timezones instead of pytz.common_timezones
but that adds a lot of noise to the name to ID mapping.

to ensure they are included in the timezone name to ID mapping.

Alternatively we could use pytz.all_timezones instead of pytz.common_timezones
but that adds a lot of noise to the name to ID mapping.
# in the timezone name mapping (these are in pytz.all_timezones but not in
# pytz.common_timezones)
DEPRECATED_TIMEZONES_WHITELIST = [
"Asia/Calcutta", # Now Asia/Kolkata (India)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen "Asia/Calcutta" commonly used as an example for this

for example:

https://github.com/google/libphonenumber/tree/master/resources/timezones

- Use bash as a shell
- Explicitly set set-safe-directory to true when checking out code
@marcospri marcospri force-pushed the check-tz-ids-match-names branch from f800896 to 1e9ebaa Compare December 22, 2025 08:45
- name: Checkout code
uses: actions/checkout@v3

- name: Configure Git safe directory
Copy link
Contributor Author

@marcospri marcospri Dec 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes for the script added #201

@marcospri marcospri merged commit e7f26af into master Jan 8, 2026
13 checks passed
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.

2 participants