From dd7e794e51f5db3053efee17743d63a841ff111d Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 16 Mar 2019 15:49:36 +0100 Subject: [PATCH] Use UTC for patch files Signed-off-by: Igor Gnatenko --- rust2rpm/__main__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index 723939e..fab7c9d 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -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):