Skip to content

Commit

Permalink
Merge pull request #4435 from Cookiezaurs/master
Browse files Browse the repository at this point in the history
[core] Fix for: When selecting single day in user analytics returning users are 0 although it should be more.
  • Loading branch information
Cookiezaurs authored Aug 7, 2023
2 parents 6242da8 + 814593c commit 897253a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/express/public/javascripts/countly/countly.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3829,14 +3829,14 @@
endTimestamp = toDate.clone().endOf("day");
// fromDate.tz(_appTimezone);
// toDate.tz(_appTimezone);

if (fromDate.valueOf() === toDate.valueOf()) {
if (fromDate.format("YYYY.M.D") === toDate.format("YYYY.M.D")) {
cycleDuration = moment.duration(1, "day");
Object.assign(periodObject, {
dateString: "D MMM, HH:mm",
periodMax: 23,
periodMin: 0,
activePeriod: fromDate.format("YYYY.M.D"),
currentPeriodArr: [fromDate.format("YYYY.M.D")],
previousPeriod: fromDate.clone().subtract(1, "day").format("YYYY.M.D")
});
}
Expand Down

0 comments on commit 897253a

Please sign in to comment.