Skip to content

Commit

Permalink
migrating to yazi v0.4.0 sxyazi/yazi#1772. Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
wekauwau committed Dec 22, 2024
1 parent 0fa938b commit 5b4c09b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ local function setup(_, options)
local modified_time = {}
local time = ""

if h or h.cha.modified then
time = " M: " .. os.date("%Y-%m-%d %H:%M", h.cha.modified // 1) .. " "
if h or h.cha.mtime then
time = " M: " .. os.date("%Y-%m-%d %H:%M", h.cha.mtime // 1) .. " "
end

table.insert(modified_time, { time, config.modified_time_color })
Expand Down

0 comments on commit 5b4c09b

Please sign in to comment.