Use canonical timezone name for Buenos Aires (#736)

Debian has moved legacy timezone names such as America/Buenos_Aires into
the tzdata-legacy package, which is not installed by default. The
canonical name for this timezone is America/Argentina/Buenos_Aires,
which remains in the standard tzdata package.

Update the test to use the canonical name to ensure compatibility with
default Debian installations.
This commit is contained in:
Edward Betts 2025-07-11 14:02:58 +01:00 committed by GitHub
parent ca5f0aedfd
commit 0eff3e8404
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1737,7 +1737,7 @@ class AdminPanelTest(TestCase):
for tz, timestamp in [
("UTC", "2022-08-01 12:00:00"),
("Asia/Tbilisi", "2022-08-01 16:00:00"),
("America/Buenos_Aires", "2022-08-01 09:00:00"),
("America/Argentina/Buenos_Aires", "2022-08-01 09:00:00"),
("Asia/Kathmandu", "2022-08-01 17:45:00"),
]:
with self.settings(TIME_ZONE=tz):