attempting to fix an issue with timestamps
This commit is contained in:
parent
8263de6875
commit
cddaa4bcc5
@ -38,7 +38,7 @@ class BaseFetcher(object):
|
|||||||
for k, v in self.filechecks['remote'].items():
|
for k, v in self.filechecks['remote'].items():
|
||||||
if v:
|
if v:
|
||||||
if self.mtime:
|
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:
|
else:
|
||||||
tstmp_raw = self.fetch_content(v.path).decode('utf-8').strip()
|
tstmp_raw = self.fetch_content(v.path).decode('utf-8').strip()
|
||||||
if '%s' in v.fmt:
|
if '%s' in v.fmt:
|
||||||
|
Loading…
Reference in New Issue
Block a user