fix for end_time less than start_time
This commit is contained in:
parent
05fe6108c5
commit
91330c5b31
@ -1213,6 +1213,11 @@ $(function() {
|
||||
return;
|
||||
|
||||
selectionTimeDiff.push(datapos.xaxis);
|
||||
|
||||
if(selectionTimeDiff[1] < selectionTimeDiff[0]) {
|
||||
selectionTimeDiff = [];
|
||||
return;
|
||||
}
|
||||
//get date from timestamp
|
||||
var min = new Date(Math.ceil(selectionTimeDiff[0]));
|
||||
var max = new Date(Math.ceil(selectionTimeDiff[1]));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user