From 2f4fad41d2b264d34e7e1cbd68817ee9acc1bef2 Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 1 Dec 2019 01:41:38 +1000 Subject: Change time format for reports, and add time to email. --- apt-panopticon-report-email.lua | 2 +- apt-panopticon-report-web.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apt-panopticon-report-email.lua b/apt-panopticon-report-email.lua index eb2a0a7..72fb332 100755 --- a/apt-panopticon-report-email.lua +++ b/apt-panopticon-report-email.lua @@ -220,7 +220,7 @@ if nil == file then C("opening mirrors file - " .. e) else "Due to the nature of the tests, some errors or warnings will be \ncounted several times. " .. "Refer to the logs on the web page for details.\n\n" .. "Please see below the current status of the Devuan Package Mirror \nnetwork:\n\n" .. - "---- BEGIN MIRROR-STATUS ----\n") + "---- BEGIN MIRROR-STATUS " .. os.date("!%Y-%m-%d %H:%M") .. " ----\n") for k, v in orderedPairs(mirrors) do local results = loadfile("results/" .. k .. ".lua")() file:write(k .. "....\n") diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua index 753a23c..94fbecf 100755 --- a/apt-panopticon-report-web.lua +++ b/apt-panopticon-report-web.lua @@ -250,7 +250,7 @@ if nil == file then C("opening mirrors file - " .. e) else file:write( "
Check time: " .. os.date("!%a %b %d %T %Z %Y") .. "
\n" .. + "Check time: " .. os.date("!%Y-%m-%d %H:%M") .. "
\n" .. "The full list of Devuan package mirrors is available at the URL: " .. "https://pkgmaster.devuan.org/mirror_list.txt
\n" .. "Due to the nature of the tests, some errors or warnings will be counted several times. " .. -- cgit v1.1