Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix OverviewChart timezone issue

Steven Tey87a56ca9f32a
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/page-client.tsx
index 3d15a57df9..5b5e17bad0 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/page-client.tsx
@@ -53,6 +53,7 @@ export default function ProgramOverviewPageClient() {
end: new Date(end).toISOString(),
}),
...(interval && { interval: interval.toString() }),
+ timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
}).toString();
const { data: totalEvents, isLoading: totalEventsLoading } = useSWR<{