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
|
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):
|
||||||
|
|
Loading…
Reference in a new issue