Skip to content

Commit 9e99b02

Browse files
committed
datetime.UTC symbol not in pythno3.9
1 parent ba0cbae commit 9e99b02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

irods/data_object.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ast
2-
from datetime import datetime, UTC
2+
from datetime import datetime, timezone
33
import enum
44
import io
55
import logging
@@ -61,7 +61,7 @@ class _repl_status(enum.Enum):
6161

6262
# An appropriate reference datetime value for gauging replica age as part of
6363
# the default sort key in PRC4 and onward.
64-
_REFERENCE_DATETIME = datetime.fromtimestamp(0, UTC)
64+
_REFERENCE_DATETIME = datetime.fromtimestamp(0, timezone.utc)
6565

6666

6767
def REPLICA_NUMBER_SORT_KEY_FN(row):

0 commit comments

Comments
 (0)