Skip to content

Commit

Permalink
Merge pull request #5141 from pnrgenc/SER-1310
Browse files Browse the repository at this point in the history
[SER-1310] Select users correctly when navigating from drill to user …
  • Loading branch information
Cookiezaurs authored Apr 30, 2024
2 parents 353b3f7 + 7412f6b commit a02ce46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/lib/countly.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,12 @@ function getPeriodObject(prmPeriod, bucket) {
toDate = moment(period[1], ["DD-MM-YYYY HH:mm:ss", "DD-MM-YYYY"]);
}

startTimestamp = fromDate.clone().startOf("day");
endTimestamp = toDate.clone().endOf("day");

fromDate.tz(_appTimezone);
toDate.tz(_appTimezone);

startTimestamp = fromDate.clone().startOf("day");
endTimestamp = toDate.clone().endOf("day");
if (fromDate.valueOf() === toDate.valueOf()) { //single day
cycleDuration = moment.duration(1, "day");
Object.assign(periodObject, {
Expand Down

0 comments on commit a02ce46

Please sign in to comment.