Skip to content

Commit 5b8f76a

Browse files
authored
deepscan
1 parent 45fcdd8 commit 5b8f76a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

bin/scripts/data-reports/compare_drill_aggregated.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,15 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("
193193
});
194194

195195
function getDataFromDrill(options, callback) {
196-
var startDate = options.periodObj.start;
197-
var endDate = options.periodObj.end;
198-
199196
var tmpArr = options.periodObj.currentPeriodArr[0].split(".");
200-
startDate = moment(new Date(Date.UTC(parseInt(tmpArr[0]), parseInt(tmpArr[1]) - 1, parseInt(tmpArr[2]))));
197+
var startDate = moment(new Date(Date.UTC(parseInt(tmpArr[0]), parseInt(tmpArr[1]) - 1, parseInt(tmpArr[2]))));
201198
if (options.timezone) {
202199
startDate.tz(options.timezone);
203200
}
204201
startDate = startDate.valueOf() - startDate.utcOffset() * 60000;
205202

206203
tmpArr = options.periodObj.currentPeriodArr[options.periodObj.currentPeriodArr.length - 1].split(".");
207-
endDate = moment(new Date(Date.UTC(parseInt(tmpArr[0]), parseInt(tmpArr[1]) - 1, parseInt(tmpArr[2])))).add(1, 'days');
204+
var endDate = moment(new Date(Date.UTC(parseInt(tmpArr[0]), parseInt(tmpArr[1]) - 1, parseInt(tmpArr[2])))).add(1, 'days');
208205
if (options.timezone) {
209206
endDate.tz(options.timezone);
210207
}
@@ -262,4 +259,4 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("
262259

263260

264261
}
265-
});
262+
});

0 commit comments

Comments
 (0)