Fix broken timestamps
thx
@@ -130,7 +130,7 @@ def _get_last_commit_time_to_verify(path: pathlib.Path) -> datetime.datetime:
code = ['git', 'log', '-1', '--date=iso', '--pretty=%ad', '--'] + list(map(lambda x: shlex.quote(str(x)), depending_files))
timestamp = subprocess.check_output(code).decode().strip()
if not timestamp:
- return datetime.datetime.fromtimestamp(0)
+ return datetime.datetime.fromtimestamp(0, tz=datetime.timezone(datetime.timedelta()))
return datetime.datetime.strptime(timestamp, '%Y-%m-%d %H:%M:%S %z')
