📈 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
another fix..
Blue Mouse89f2eec15288
diff --git a/src/analytics/analytics.controller.ts b/src/analytics/analytics.controller.tsindex 9cb75b751..5976f6e04 100644--- a/src/analytics/analytics.controller.ts+++ b/src/analytics/analytics.controller.ts@@ -137,8 +137,13 @@ export class AnalyticsController {checkIfTBAllowed(timeBucket, from, 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')+ groupFrom = dayjs.tz(from, timezone).utc().format('YYYY-MM-DD HH:mm:ss')++ if (from === to) {+ groupTo = dayjs.tz(to, timezone).add(1, 'day').format('YYYY-MM-DD HH:mm:ss')+ } else {+ groupTo = dayjs.tz(to, timezone).format('YYYY-MM-DD HH:mm:ss')+ }} else if (!_isEmpty(period)) {if (period === 'today') {if (timezone !== DEFAULT_TIMEZONE && isValidTimezone(timezone)) {