fix: invariant format of log time data #3195 (#3202)

This commit is contained in:
DerSkythe 2023-11-05 17:59:22 +04:00 committed by GitHub
parent 0d94abf856
commit 085c90af40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ class GitVersion:
)
else:
commit_date = datetime.strptime(
self._exec_git("log -1 --format=%cd").strip(),
self._exec_git("log -1 --format=%cd --date=default").strip(),
"%a %b %d %H:%M:%S %Y %z",
)