Use UTC for patch files

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-03-16 15:49:36 +01:00
parent 2b20b9e369
commit dd7e794e51
No known key found for this signature in database
GPG key ID: 695714BD1BBC5F4C

View file

@ -85,8 +85,7 @@ def detect_packager():
return None return None
def file_mtime(path): def file_mtime(path):
t = datetime.fromtimestamp(os.stat(path).st_mtime, timezone.utc) return datetime.fromtimestamp(os.stat(path).st_mtime, timezone.utc).isoformat()
return t.astimezone().isoformat()
@contextlib.contextmanager @contextlib.contextmanager
def remove_on_error(path): def remove_on_error(path):