diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php index a69d0c9ab9..e598af2690 100644 --- a/html/pages/graphs.inc.php +++ b/html/pages/graphs.inc.php @@ -118,13 +118,13 @@ if (!$auth) function submitCustomRange(frmdata) { var reto = /to=([0-9])+/g; var refrom = /from=([0-9])+/g; - var tsto = new Date(frmdata.dtpickerto.value)//.replace(' ','T')); - var tsfrom = new Date(frmdata.dtpickerfrom.value)//.replace(' ','T')); + var tsto = new Date(frmdata.dtpickerto.value); + var tsfrom = new Date(frmdata.dtpickerfrom.value); tsto = tsto.getTime() / 1000; tsfrom = tsfrom.getTime() / 1000; frmdata.selfaction.value = frmdata.selfaction.value.replace(reto, 'to=' + tsto); frmdata.selfaction.value = frmdata.selfaction.value.replace(refrom, 'from=' + tsfrom); - frmdata.action = frmdata.selfaction.value + frmdata.action = frmdata.selfaction.value; return true; }