Skip to content

Commit

Permalink
Merge pull request #859 from tornaria/utcnow
Browse files Browse the repository at this point in the history
fix utcnow deprecation
  • Loading branch information
minrk authored Jan 5, 2024
2 parents 674e0a0 + 0654e19 commit c1e6b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipyparallel/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def compare_datetimes(a, b):

def utcnow():
"""Timezone-aware UTC timestamp"""
return datetime.utcnow().replace(tzinfo=utc)
return datetime.now(utc)


def _v(version_s):
Expand Down

0 comments on commit c1e6b5c

Please sign in to comment.