We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 518b685 commit 3c6da47Copy full SHA for 3c6da47
tests/test_dates.py
@@ -25,7 +25,7 @@
25
import pytz
26
27
test_date = datetime(1996, 10, 13, 2, 20).replace(tzinfo=pytz.utc)
28
- today = datetime.utcnow().replace(tzinfo=pytz.utc) # make sure UTC
+ today = datetime.now(pytz.utc) # make sure UTC
29
30
def test_utc_offset():
31
# Check that the correct UTC offsets are given for common timezones
0 commit comments