summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2020-07-26 03:52:37 -0400
committerbrent s <bts@square-r00t.net>2020-07-26 03:52:37 -0400
commitcddaa4bcc5fcd2234899844243238ee02666ee73 (patch)
tree5a5064f3f05440a7c6679cd7ff9ce0de2279b07f
parent8263de687582a1e9905187f3a33a10c075aa873b (diff)
downloadRepoMirror-cddaa4bcc5fcd2234899844243238ee02666ee73.tar.xz
attempting to fix an issue with timestamps
-rw-r--r--repomirror/fetcher/_base.py2
1 files changed, 1 insertions, 1 deletions
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: