mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fix formatEpochRFC2822
This commit is contained in:
parent
ce57eef578
commit
f3b95a6d72
1 changed files with 4 additions and 4 deletions
|
|
@ -275,12 +275,12 @@ function format_utils.formatEpochRFC2822(epoch)
|
|||
local minutes
|
||||
if diff > 0 then
|
||||
sign = '-'
|
||||
hours = diff / (60*60)
|
||||
minutes = diff % (60*60)
|
||||
hours = math.floor(diff / (60*60))
|
||||
minutes = (diff % (60*60)) / 60
|
||||
else
|
||||
sign = '+'
|
||||
hours = -diff / (60*60)
|
||||
minutes = -diff % (60*60)
|
||||
hours = math.floor(-diff / (60*60))
|
||||
minutes = (-diff % (60*60)) / 60
|
||||
end
|
||||
|
||||
-- Format date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue