[utils] timeconvert() should return int

This commit is contained in:
dirkf 2022-02-27 04:54:24 +00:00
parent 1cd4bb0d82
commit 81d6b10f48

View File

@ -2074,7 +2074,7 @@ def timeconvert(timestr):
timetuple = email.utils.parsedate_tz(timestr)
if timetuple is not None:
timestamp = email.utils.mktime_tz(timetuple)
return timestamp
return int(timestamp) if timestamp is not None else timestamp
def sanitize_filename(s, restricted=False, is_id=False):