Use UTC for patch files
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
2b20b9e369
commit
dd7e794e51
1 changed files with 1 additions and 2 deletions
|
@ -85,8 +85,7 @@ def detect_packager():
|
|||
return None
|
||||
|
||||
def file_mtime(path):
|
||||
t = datetime.fromtimestamp(os.stat(path).st_mtime, timezone.utc)
|
||||
return t.astimezone().isoformat()
|
||||
return datetime.fromtimestamp(os.stat(path).st_mtime, timezone.utc).isoformat()
|
||||
|
||||
@contextlib.contextmanager
|
||||
def remove_on_error(path):
|
||||
|
|
Loading…
Reference in a new issue