Skip to content

Commit 3c6da47

Browse files
committed
Update test_dates.py for Python 3.12
1 parent 518b685 commit 3c6da47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import pytz
2626

2727
test_date = datetime(1996, 10, 13, 2, 20).replace(tzinfo=pytz.utc)
28-
today = datetime.utcnow().replace(tzinfo=pytz.utc) # make sure UTC
28+
today = datetime.now(pytz.utc) # make sure UTC
2929

3030
def test_utc_offset():
3131
# Check that the correct UTC offsets are given for common timezones

0 commit comments

Comments
 (0)