diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php
index 39124ef321..a69d0c9ab9 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'));
- var tsfrom = new Date(frmdata.dtpickerfrom.value//.replace(' ','T'));
+ var tsto = new Date(frmdata.dtpickerto.value)//.replace(' ','T'));
+ var tsfrom = new Date(frmdata.dtpickerfrom.value)//.replace(' ','T'));
tsto = tsto.getTime() / 1000;
tsfrom = tsfrom.getTime() / 1000;
frmdata.selfaction.value = frmdata.selfaction.value.replace(reto, 'to=' + tsto);