Skip to content

Commit

Permalink
Merge pull request #663 from sigma67/fix-661
Browse files Browse the repository at this point in the history
fix #661
  • Loading branch information
derks authored Jan 29, 2024
2 parents ea32057 + 8b0ab88 commit 16bd42c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cement/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 16bd42c

Please sign in to comment.