Skip to content

Commit

Permalink
Merge branch 'main' of github.com:datafolklabs/cement
Browse files Browse the repository at this point in the history
  • Loading branch information
derks committed Jan 29, 2024
2 parents 2fad3c1 + 16bd42c commit 16efbb3
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 16efbb3

Please sign in to comment.