From 7412f6b3e7eb4bdc5e28234c8f0df433a01f844c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=B1nar=20Gen=C3=A7?= Date: Mon, 29 Apr 2024 17:54:30 +0300 Subject: [PATCH] [SER-1310] Select users correctly when navigating from drill to user profiles. --- api/lib/countly.common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/lib/countly.common.js b/api/lib/countly.common.js index 0368301170b..5d809a38b3f 100644 --- a/api/lib/countly.common.js +++ b/api/lib/countly.common.js @@ -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, {