fix: use stat to last modified date (#121)

main
PostCyberPunk 2024-04-26 16:23:21 +08:00 committed by GitHub
parent 8fc97b6182
commit 96bf597778
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ function M.list()
dir_path = session_name
end
local f = io.popen("stat -f %a " .. session)
local f = io.popen("stat -c %x " .. session)
local last_modified = ""
if f then
last_modified = f:read()