From a275b3a9c2a99939d7982335a1bd77a103602741 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 19 May 2022 16:53:49 -0400 Subject: [PATCH] Fix analytics --- web/pages/analytics.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pages/analytics.tsx b/web/pages/analytics.tsx index e948b998..0d842fa0 100644 --- a/web/pages/analytics.tsx +++ b/web/pages/analytics.tsx @@ -18,7 +18,7 @@ import { getDailyNewUsers } from 'web/lib/firebase/users' export const getStaticProps = fromPropz(getStaticPropz) export async function getStaticPropz() { - const numberOfDays = 10 + const numberOfDays = 45 const tomorrow = dayjs(dayjs().format('YYYY-MM-DD')) .add(1, 'day') // Convert from UTC midnight to PT midnight. @@ -148,7 +148,7 @@ export async function getStaticPropz() { return { props: { - startDate, + startDate: startDate.valueOf(), dailyActiveUsers, weeklyActiveUsers, monthlyActiveUsers,