This commit is contained in:
sigma67 2024-01-02 09:34:11 +01:00
parent a0e741c7f1
commit 71f1e32c45
No known key found for this signature in database
GPG Key ID: 9F0867F235612837

View File

@ -99,7 +99,7 @@ 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')