mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix client zoneinfo
This commit is contained in:
parent
160279e5eb
commit
91b67b2941
1 changed files with 5 additions and 3 deletions
|
|
@ -21,9 +21,11 @@ local active_section = nil
|
|||
local active_entry = nil
|
||||
local active_sub_entry = nil
|
||||
|
||||
local zoneinfo = "'".. ntop.getInfo().zoneinfo .."'"
|
||||
if zoneinfo == nil then
|
||||
zoneinfo = "null"
|
||||
|
||||
local zoneinfo = 'null'
|
||||
local temp_zoneinfo = ntop.getInfo().zoneinfo
|
||||
if temp_zoneinfo ~= nil then
|
||||
zoneinfo = "( /^[\\x00-\\xFF]*$/.test('" .. temp_zoneinfo .."') && moment.tz.zone('" .. temp_zoneinfo .."') != null ? '".. temp_zoneinfo .. "' : function() { console.warn('zoneinfo not valid:' + (/^[\\x00-\\xFF]*$/.test('" .. temp_zoneinfo .."') ? '" .. temp_zoneinfo .."' : 'Invalid string') ); return null; }())"
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue