📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fixed groupping from/to
Blue Mouse3b1e30fb4d4e
diff --git a/src/analytics/analytics.controller.ts b/src/analytics/analytics.controller.tsindex f04034998..9cb75b751 100644--- a/src/analytics/analytics.controller.ts+++ b/src/analytics/analytics.controller.ts@@ -137,12 +137,8 @@ export class AnalyticsController {checkIfTBAllowed(timeBucket, from, to)- groupFrom = from- if (from === to) {- groupTo = dayjs(to).format('YYYY-MM-DD 23:59:59')- } else {- groupTo = to- }+ groupFrom = dayjs(from).tz(timezone).utc().format('YYYY-MM-DD HH:mm:ss')+ groupTo = dayjs(to).tz(timezone).utc().add(1, 'day').format('YYYY-MM-DD HH:mm:ss')} else if (!_isEmpty(period)) {if (period === 'today') {if (timezone !== DEFAULT_TIMEZONE && isValidTimezone(timezone)) {