mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 17:59:19 +02:00
st_mtime can be -11644473600 on win64 fat16 vhd
This commit is contained in:
parent
0de09860f6
commit
261236e302
3 changed files with 7 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue