From cddaa4bcc5fcd2234899844243238ee02666ee73 Mon Sep 17 00:00:00 2001 From: brent s Date: Sun, 26 Jul 2020 03:52:37 -0400 Subject: [PATCH] attempting to fix an issue with timestamps --- repomirror/fetcher/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repomirror/fetcher/_base.py b/repomirror/fetcher/_base.py index f61ed6b..d9d7d21 100644 --- a/repomirror/fetcher/_base.py +++ b/repomirror/fetcher/_base.py @@ -38,7 +38,7 @@ class BaseFetcher(object): for k, v in self.filechecks['remote'].items(): if v: if self.mtime: - self.timestamps[k] = self.fetch_content(v.path, mtime_only = True) + self.timestamps[k] = datetime.datetime.fromtimestamp(float(self.fetch_content(v.path, mtime_only = True))) else: tstmp_raw = self.fetch_content(v.path).decode('utf-8').strip() if '%s' in v.fmt: