diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php index cd4f6181b..b3f6a36b5 100644 --- a/html/pages/graphs.inc.php +++ b/html/pages/graphs.inc.php @@ -118,8 +118,8 @@ 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')+":00.000Z"); - var tsfrom = new Date(frmdata.dtpickerfrom.value.replace(' ', 'T')+":00.000Z"); + var tsto = new Date(frmdata.dtpickerto.value.replace('-', '/')+":00"); + var tsfrom = new Date(frmdata.dtpickerfrom.value.replace('-', '/')+":00"); tsto = tsto.getTime() / 1000; tsfrom = tsfrom.getTime() / 1000; frmdata.selfaction.value = frmdata.selfaction.value.replace(reto, 'to=' + tsto);