Skip to content

Commit

Permalink
Format used with stat -c on Linux should be %y, not %Y (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
python33r authored Oct 21, 2024
1 parent 5540f81 commit 0253ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _extensions/now/now.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ local function last_modified_bsd(file)
end

local function last_modified_linux(file)
local command = "stat -c %Y " .. file -- Command to get modification time
local command = "stat -c %y " .. file -- Command to get modification time

local result = run_command(command)
if result == nil then
Expand Down

0 comments on commit 0253ae1

Please sign in to comment.