Should respect first timestamp as bin_start

This commit is contained in:
Daniel García Aubert
2017-07-12 15:19:28 +02:00
parent 967dca9578
commit b67f6053e8
2 changed files with 49 additions and 5 deletions
+3 -3
View File
@@ -562,10 +562,10 @@ function getTimezone(timezone) {
function populateBinStart(override, firstRow) {
var binStart;
if (override.hasOwnProperty('start')) {
binStart = getBinStart(override);
} else if (firstRow.hasOwnProperty('timestamp')) {
if (firstRow.hasOwnProperty('timestamp')) {
binStart = firstRow.timestamp;
} else if (override.hasOwnProperty('start')) {
binStart = getBinStart(override);
} else {
binStart = firstRow.min;
}