Skip to content

Commit 68d2cca

Browse files
committed
Fix utc import for python <3.11
1 parent 6c58e82 commit 68d2cca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapinghub/hubstorage/serialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from datetime import UTC, datetime
1+
from datetime import datetime, timezone
22
from json import dumps, loads
33

44
import six
55

6-
EPOCH = datetime.fromtimestamp(0, UTC)
6+
EPOCH = datetime.fromtimestamp(0, timezone.utc)
77
ADAYINSECONDS = 24 * 3600
88

99

0 commit comments

Comments
 (0)