Fixed date inputs after jump for export popup
This commit is contained in:
@ -51,6 +51,7 @@ class ExportPopup extends HTMLElement{
|
||||
|
||||
let exportTypeDate = this.getElementsByClassName(`export-${type}-date`)[0];
|
||||
exportTypeDate.valueAsNumber = timestamp;
|
||||
exportTypeDate.valueAsDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())) // date input uses UTC
|
||||
let exportTypeTime = this.getElementsByClassName(`export-${type}-time`)[0];
|
||||
exportTypeTime.valueAsDate = time;
|
||||
|
||||
|
@ -796,7 +796,7 @@ let graphs = (function (){
|
||||
msLeftTimestampGetGraph = dateTimestampMs;
|
||||
|
||||
msRightTimestampGetVars = dateTimestampMs + timeValueMs;
|
||||
msRightTimestampGetGraph = dateTimestampMs + 24*60*60*1000 - 1000;
|
||||
msRightTimestampGetGraph = dateTimestampMs + 24*60*60*1000;
|
||||
|
||||
AJAX("http://" + hostPort + "/getvars?time=" + msLeftTimestampGetVars/1000 + "," + msRightTimestampGetVars/1000 + "&id="+ clientID).getJSON().then(function(data){
|
||||
blocks = data.blocks;
|
||||
@ -804,7 +804,7 @@ let graphs = (function (){
|
||||
maxTime = msRightTimestampGetGraph;
|
||||
minTime = msLeftTimestampGetGraph;
|
||||
|
||||
currentMaxTime = maxTime + 60000;
|
||||
currentMaxTime = maxTime;
|
||||
currentMinTime = minTime;
|
||||
|
||||
globalIndicators.getIndicatorsMap()[datesKey].update(currentMinTime);
|
||||
|
Reference in New Issue
Block a user