Skip to content

Commit 9f7b8cf

Browse files
authored
fix test_setting_timezone_with_string and test_setting_timezone (#883)
using the timezone without daylight saving time. Fixes GH #541.
1 parent 7642246 commit 9f7b8cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/datetime/test_construct.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_creates_an_instance_default_to_utcnow():
3939

4040

4141
def test_setting_timezone():
42-
tz = "Europe/London"
42+
tz = "Australia/Brisbane"
4343
dtz = timezone(tz)
4444
dt = datetime.utcnow()
4545
offset = dtz.convert(dt).utcoffset().total_seconds() / 3600
@@ -50,7 +50,7 @@ def test_setting_timezone():
5050

5151

5252
def test_setting_timezone_with_string():
53-
tz = "Europe/London"
53+
tz = "Australia/Brisbane"
5454
dtz = timezone(tz)
5555
dt = datetime.utcnow()
5656
offset = dtz.convert(dt).utcoffset().total_seconds() / 3600

0 commit comments

Comments
 (0)