mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fix date format. (#7873)
This commit is contained in:
parent
4d5d341bfd
commit
6ba1c8f779
1 changed files with 2 additions and 2 deletions
|
|
@ -259,8 +259,8 @@ end
|
|||
function format_utils.formatPastEpochShort(input_epoch)
|
||||
local epoch_now = os.time()
|
||||
local epoch = input_epoch or epoch_now
|
||||
local day = os.date("!%d", epoch)
|
||||
local day_now = os.date("!%d", epoch_now)
|
||||
local day = os.date("*t", epoch).day
|
||||
local day_now = os.date("*t", epoch_now).day
|
||||
|
||||
if day == day_now then
|
||||
return os.date("%X", epoch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue