mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 13:56:49 +00:00
fix #661
This commit is contained in:
parent
a0e741c7f1
commit
71f1e32c45
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user