From 5b4c09b772b21aca665ef8bd7a9bd0fc68624b1d Mon Sep 17 00:00:00 2001 From: wekauwau Date: Sun, 22 Dec 2024 09:54:48 +0700 Subject: [PATCH] migrating to yazi v0.4.0 sxyazi/yazi#1772. Fixes #1 --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 4f2bc30..5ae02d6 100644 --- a/init.lua +++ b/init.lua @@ -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 })