Use the canonical name of the test timezone

Closes #14170
(grafted from 38c8bbe6c090fa62530b010065565bd38700f84a)

--HG--
branch : 7.0
This commit is contained in:
Nicolas Évrard committed 2025-08-18 11:35:25 +02:00
1 parent cab505aa84
commit 8c4d0224e6
1 file changed
+1 -1
+1 -1
View File
@@ -489,7 +489,7 @@ class IrCronTestCase(unittest.TestCase):
def setUp(self):
server_tz = timezone.SERVER
timezone.SERVER = timezone.ZoneInfo('Canada/Eastern')
timezone.SERVER = timezone.ZoneInfo('America/Toronto')
self.addCleanup(setattr, timezone, 'SERVER', server_tz)
def _get_cron(self):