From a57ac9df9bf1a537524635d0034276d72f743b3d Mon Sep 17 00:00:00 2001 From: Sergey Volkov Date: Sun, 30 Mar 2025 19:14:21 +0200 Subject: [PATCH] fix test_setting_timezone_with_string and test_setting_timezone using the timezone without daylight saving time. Fixes GH #541. --- tests/datetime/test_construct.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/datetime/test_construct.py b/tests/datetime/test_construct.py index b083cbef..b55cf8c7 100644 --- a/tests/datetime/test_construct.py +++ b/tests/datetime/test_construct.py @@ -39,7 +39,7 @@ def test_creates_an_instance_default_to_utcnow(): def test_setting_timezone(): - tz = "Europe/London" + tz = "Australia/Brisbane" dtz = timezone(tz) dt = datetime.utcnow() offset = dtz.convert(dt).utcoffset().total_seconds() / 3600 @@ -50,7 +50,7 @@ def test_setting_timezone(): def test_setting_timezone_with_string(): - tz = "Europe/London" + tz = "Australia/Brisbane" dtz = timezone(tz) dt = datetime.utcnow() offset = dtz.convert(dt).utcoffset().total_seconds() / 3600