We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3b2e1d commit 6c58e82Copy full SHA for 6c58e82
scrapinghub/hubstorage/serialization.py
@@ -1,13 +1,15 @@
1
-import six
+from datetime import UTC, datetime
2
from json import dumps, loads
3
-from datetime import datetime
4
5
-EPOCH = datetime.utcfromtimestamp(0)
+import six
+
6
+EPOCH = datetime.fromtimestamp(0, UTC)
7
ADAYINSECONDS = 24 * 3600
8
9
10
try:
11
from msgpack import Unpacker
12
13
MSGPACK_AVAILABLE = True
14
except ImportError:
15
MSGPACK_AVAILABLE = False
0 commit comments