Change date format to include seconds

This commit is contained in:
三咲雅 misaki masa 2025-12-27 07:56:36 +08:00 committed by GitHub
parent 881a9937aa
commit 70ba80e34d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,8 +49,8 @@ function M:spot_base(job)
return {
ui.Row({ "Base" }):style(ui.Style():fg("green")),
ui.Row { " Created:", cha.btime and os.date("%Y-%m-%d %H:%M", math.floor(cha.btime)) or "-" },
ui.Row { " Modified:", cha.mtime and os.date("%Y-%m-%d %H:%M", math.floor(cha.mtime)) or "-" },
ui.Row { " Created:", cha.btime and os.date("%Y-%m-%d %H:%M:%S", math.floor(cha.btime)) or "-" },
ui.Row { " Modified:", cha.mtime and os.date("%Y-%m-%d %H:%M:%S", math.floor(cha.mtime)) or "-" },
ui.Row { " Mimetype:", job.mime },
ui.Row {},