Fixes wrong time/timezone in forwarded syslog messages

Addresses #6097
This commit is contained in:
Simone Mainardi 2021-12-21 16:42:58 +01:00
parent ae1d57fd86
commit 38bc12b6d0
3 changed files with 10 additions and 5 deletions

View file

@ -201,8 +201,7 @@ function format_utils.formatEpochISO8601(epoch)
if epoch == 0 then
return("")
else
local t = epoch + getFrontendTzSeconds()
return os.date("!%Y-%m-%dT%TZ", t)
return os.date("!%Y-%m-%dT%TZ", epoch)
end
end