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 c3dd18c commit 87f69e6Copy full SHA for 87f69e6
packages/common-library/src/common_library/error_codes.py
@@ -10,10 +10,9 @@
10
import hashlib
11
import re
12
import traceback
13
-from datetime import datetime
+from datetime import UTC, datetime
14
from typing import Annotated, Final, TypeAlias
15
16
-import arrow
17
from pydantic import StringConstraints, TypeAdapter
18
19
_LABEL = "OEC:{fingerprint}-{timestamp}"
@@ -49,7 +48,7 @@ def _create_timestamp() -> int:
49
48
"""Timestamp as milliseconds since epoch
50
NOTE: this reduces the precission to milliseconds but it is good enough for our purpose
51
"""
52
- ts = arrow.utcnow().float_timestamp * _MILISECONDS
+ ts = datetime.now(UTC).timestamp() * _MILISECONDS
53
return int(ts)
54
55
0 commit comments