Skip to content

[5.10] Removing checks for deleted timezones #4960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

etcwilde
Copy link
Contributor

Linux distros that have picked up newer copies of the tzdata database have dropped some of the timezones tested in corelibs-foundation. Removing them, or replacing with the equivalent timezone replacement, according to the contents of /usr/share/zoneinfo on Ubuntu 23.10.

Removed timezones include:

  • Israel -> Asia/Jerusalem
  • US/Pacific -> America/Los_Angeles
  • Brazil/East -> America/Sao_Paulo
  • Europe/Kiev -> Europe/Kyiv

@etcwilde
Copy link
Contributor Author

@swift-ci please test

Recent Linux distributions no longer carry some deprecated timezones.
Removing them, or replacing with the equivalent timezone, according to
the contents of `/usr/share/zoneinfo` across the years of Linux that we
are currently supporting.

Removed timezones include:
 - Israel          -> Asia/Jerusalem
 - US/Pacific      -> America/Los_Angeles
 - Brazil/East     -> America/Sao_Paulo

Unfortunately, the 'Europe/Kyiv'/'Europe/Kiev' timezone has changed
around a bit in the past few years, likely as a result of political
events. As a result, I don't think I have a single spelling that will
work across all of the versions of OS's that we are trying to support.
If we really want to ensure that the tests are testing that Foundation
can load timezone information and not test the current political events,
it would likely be a good idea to save a couple of timezone files off
for testing purposes and use those across OS versions instead of hoping
that the list of timezones doesn't change from year-to-year. For now,
I'm going to point the test at London instead. The daylight savings time
shifted on the same date in 2020, so there is no other change to the
test needed.
@etcwilde etcwilde force-pushed the ewilde/remove-removed-timezones branch from c1930b7 to fd74a7a Compare May 25, 2024 03:00
@etcwilde
Copy link
Contributor Author

@swift-ci please test Linux platform

@etcwilde
Copy link
Contributor Author

@swift-ci please test Windows platform

1 similar comment
@etcwilde
Copy link
Contributor Author

@swift-ci please test Windows platform

@shahmishal shahmishal merged commit 635aecd into swiftlang:release/5.10 May 31, 2024
2 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.

4 participants