fix(nix-monitor): change date command to noctalia.formatTime

This commit is contained in:
avivbintangaringga
2026-07-15 12:42:23 +07:00
parent ed42fc9be1
commit 6805464bf7
+4 -1
View File
@@ -123,7 +123,10 @@ function onRemoteHashCheckCompleted()
end
setState("lastRemoteCheckTime", os.time())
noctalia.runAsync("date '+%Y-%m-%d %H:%M'", function(date) setState("lastRemoteCheckTimeStr", date.stdout) end)
local date = noctalia.formatTime("%Y-%m-%d %H:%M:%S")
setState("lastRemoteCheckTimeStr", date)
noctalia.removeFile(remotePidFile)
end