From 054022346ef24e148d72fb075e4e51681a3a3729 Mon Sep 17 00:00:00 2001 From: Travis Hegner Date: Thu, 2 Jul 2015 14:33:19 -0400 Subject: [PATCH] prevent form submission from converting to UTC --- html/pages/graphs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php index 201a096d78..39124ef321 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);