Skip to content

fix: Update deprecated timezone names#756

Open
ralflang wants to merge 1 commit intosabre-io:masterfrom
ralflang:fix/deprecated-timezone-names
Open

fix: Update deprecated timezone names#756
ralflang wants to merge 1 commit intosabre-io:masterfrom
ralflang:fix/deprecated-timezone-names

Conversation

@ralflang
Copy link
Copy Markdown

Supersedes #755 which was based against the current maintenance branch and thus had a huge, misleading diff.

fix(timezonedata): Replace deprecated IANA timezone names

Systems without the tzdata-legacy package, i.e. (Ubuntu 24.04+) reject deprecated names.

Examples: Europe/Kiev, Asia/Calcutta, America/Godthab
This causes FindFromTimezoneMap::find() to throw.
Update all 13 occurrences across windowszones, lotuszones and exchangezones maps to their canonical replacements and wrap DateTimeZone instantiation in try/catch for resilience against future renames.

Comes with unit test

Systems without the tzdata-legacy package, i.e. (Ubuntu 24.04+) reject deprecated names.

Examples: Europe/Kiev, Asia/Calcutta, America/Godthab
This causes FindFromTimezoneMap::find() to throw.
Update all 13 occurrences across windowszones, lotuszones and exchangezones maps to their canonical replacements and wrap DateTimeZone instantiation in try/catch for resilience against future renames.

Comes with unit test
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.

1 participant