Skip to content

armgit / umami

Public Imported from GitHub
0

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.

Fix timezone bug (#1543)

Brian Caob3d7d49448ed
diff --git a/pages/api/website/[id]/pageviews.js b/pages/api/website/[id]/pageviews.js
index f2e110617..f00fffa18 100644
--- a/pages/api/website/[id]/pageviews.js
+++ b/pages/api/website/[id]/pageviews.js
@@ -29,7 +29,7 @@ export default async (req, res) => {
getPageviewStats(websiteId, {
start_at: startDate,
end_at: endDate,
- tz,
+ timezone: tz,
unit,
count: '*',
filters: {
@@ -44,7 +44,7 @@ export default async (req, res) => {
getPageviewStats(websiteId, {
start_at: startDate,
end_at: endDate,
- tz,
+ timezone: tz,
unit,
count: 'distinct pageview.',
filters: {