Skip to content

Commit c1e6b5c

Browse files
authored
Merge pull request #859 from tornaria/utcnow
fix utcnow deprecation
2 parents 674e0a0 + 0654e19 commit c1e6b5c

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)