st_mtime can be -11644473600 on win64 fat16 vhd

This commit is contained in:
ed 2025-05-18 21:34:38 +00:00
parent 0de09860f6
commit 261236e302
3 changed files with 7 additions and 6 deletions

View file

@ -1289,7 +1289,7 @@ class Ctl(object):
if self.ar.jw:
print("%s %s" % (wark, vp))
else:
zd = datetime.datetime.fromtimestamp(file.lmod, UTC)
zd = datetime.datetime.fromtimestamp(max(0, file.lmod), UTC)
dt = "%04d-%02d-%02d %02d:%02d:%02d" % (
zd.year,
zd.month,