mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Pass client timezone as a cookie to properly format time
This commit is contained in:
parent
70ca600ed3
commit
c6b43f1af3
7 changed files with 33 additions and 17 deletions
|
|
@ -1185,7 +1185,6 @@ function updateGraphsTableView(view, graph_params, has_nindex, nindex_query, per
|
|||
|
||||
var graph_table = $("#chart1-flows");
|
||||
nindex_query = nindex_query + "&begin_time_clause=" + graph_params.epoch_begin + "&end_time_clause=" + graph_params.epoch_end;
|
||||
nindex_query = nindex_query + "&timezone=" + (new Date().getTimezoneOffset() * 60 * -1);
|
||||
var nindex_buttons = "";
|
||||
var params_obj = tsQueryToTags(graph_params.ts_query);
|
||||
|
||||
|
|
@ -1254,7 +1253,6 @@ function updateGraphsTableView(view, graph_params, has_nindex, nindex_query, per
|
|||
// TODO change topk
|
||||
// TODO disable statistics
|
||||
params.detail_view = view.id;
|
||||
params.timezone = (new Date().getTimezoneOffset() * 60 * -1);
|
||||
|
||||
return params;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue