This commit is contained in:
Daniel 2024-04-24 20:05:42 +08:00
parent 7949cfa1bc
commit ffb44137f2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 27 additions and 27 deletions

View file

@ -90,7 +90,7 @@ func (box *Box) docFromFileInfo(fileInfo *FileInfo, ial map[string]string) (ret
t, _ := time.ParseInLocation("20060102150405", ret.ID[:14], time.Local)
ret.CTime = t.Unix()
ret.HCtime = t.Format("2006-01-02 15:04:05")
ret.HSize = humanize.Bytes(ret.Size)
ret.HSize = humanize.BytesCustomCeil(ret.Size, 2)
mTime := t
if updated := ial["updated"]; "" != updated {