Skip to content

Commit

Permalink
avoid deprecated utcfromtimestamp
Browse files Browse the repository at this point in the history
Fixes #1284
  • Loading branch information
graingert committed Jun 2, 2023
1 parent b04edc0 commit f229320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dateutil/tz/tz.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from warnings import warn

ZERO = datetime.timedelta(0)
EPOCH = datetime.datetime.utcfromtimestamp(0)
EPOCH = datetime.datetime(1970, 1, 1, 0, 0)
EPOCHORDINAL = EPOCH.toordinal()


Expand Down

0 comments on commit f229320

Please sign in to comment.