Skip to content

Commit 0654e19

Browse files
committed
fix utcnow deprecation
1 parent 554810e commit 0654e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipyparallel/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ def compare_datetimes(a, b):
591591

592592
def utcnow():
593593
"""Timezone-aware UTC timestamp"""
594-
return datetime.utcnow().replace(tzinfo=utc)
594+
return datetime.now(utc)
595595

596596

597597
def _v(version_s):

0 commit comments

Comments
 (0)