fix(nix-monitor): change date command to noctalia.formatTime
This commit is contained in:
@@ -123,7 +123,10 @@ function onRemoteHashCheckCompleted()
|
|||||||
end
|
end
|
||||||
|
|
||||||
setState("lastRemoteCheckTime", os.time())
|
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)
|
noctalia.removeFile(remotePidFile)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user