mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
test static TZ parse
This commit is contained in:
@@ -118,8 +118,10 @@ 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 strto = frmdata.dtpickerto.value.replace(' ', 'T')+':00Z0400';
|
||||
var tsto = new Date(strto);
|
||||
var strfrom = frmdata.dtpickerfrom.value.replace(' ', 'T')+':00Z0400';
|
||||
var tsfrom = new Date(strfrom);
|
||||
tsto = tsto.getTime() / 1000;
|
||||
tsfrom = tsfrom.getTime() / 1000;
|
||||
frmdata.selfaction.value = frmdata.selfaction.value.replace(reto, 'to=' + tsto);
|
||||
|
||||
Reference in New Issue
Block a user