This commit is contained in:
Luca Deri 2020-12-15 15:35:11 +01:00
parent 0a0309fb32
commit 5df403e969
2 changed files with 5 additions and 4 deletions

View file

@ -192,8 +192,9 @@ function format_utils.formatEpoch(epoch)
if epoch == 0 then
return("")
else
-- specify the ! to indicate UTC time so that adding getFrontendTzSeconds() will give expected results
return(os.date("!%d/%m/%Y %X", epoch + getFrontendTzSeconds()))
local t = epoch + getFrontendTzSeconds()
-- specify the ! to indicate UTC time so that adding getFrontendTzSeconds() will give expected results
return(os.date("!%d/%m/%Y %X", t))
end
end