diff --git a/cement/utils/version.py b/cement/utils/version.py index de92da97..c2117e43 100644 --- a/cement/utils/version.py +++ b/cement/utils/version.py @@ -99,7 +99,9 @@ def get_git_changeset(): # pragma: nocover universal_newlines=True) timestamp = git_log.communicate()[0] try: - timestamp = datetime.datetime.utcfromtimestamp(int(timestamp)) + timestamp = datetime.datetime.fromtimestamp( + int(timestamp), datetime.UTC + ) except ValueError: # pragma: nocover return None # pragma: nocover return timestamp.strftime('%Y%m%d%H%M%S')