feat(ui): use ISO 8601 date format for file timestamps

Changed the file creation and modification date display to use the ISO 8601 format (%Y-%m-%d %H:%M) instead of the previous short format (%y/%m/%d H:%M).
This commit is contained in:
Francesco Marchisotti 2025-12-26 22:36:02 +01:00
parent 2f66561a82
commit 881a9937aa

View file

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