mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-20 17:29:13 +00:00
Fix formatEpochRFC2822
This commit is contained in:
parent
324254bf42
commit
fc96849b0d
1 changed files with 4 additions and 4 deletions
|
|
@ -240,12 +240,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