Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
fix: use settings timezone in revenue chart date range
Serhii Zghamae6f3f3b4b40a
diff --git a/src/app/(main)/websites/[websiteId]/(reports)/revenue/RevenuePage.tsx b/src/app/(main)/websites/[websiteId]/(reports)/revenue/RevenuePage.tsxindex 3e429c187..4dc19e012 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/revenue/RevenuePage.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/revenue/RevenuePage.tsx@@ -1,13 +1,14 @@'use client';import { Column } from '@umami/react-zen';import { WebsiteControls } from '@/app/(main)/websites/[websiteId]/WebsiteControls';-import { useDateRange } from '@/components/hooks';+import { useDateRange, useTimezone } from '@/components/hooks';import { Revenue } from './Revenue';export function RevenuePage({ websiteId }: { websiteId: string }) {+ const { timezone } = useTimezone();const {dateRange: { startDate, endDate, unit },- } = useDateRange();+ } = useDateRange({ timezone });return (<Column gap>