attempting to fix an issue with timestamps

This commit is contained in:
brent s. 2020-07-26 03:52:37 -04:00
parent 8263de6875
commit cddaa4bcc5
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
1 changed files with 1 additions and 1 deletions

View File

@ -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: