From 91047c36b5cf6f632dac9eff12133beae0021942 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 28 Sep 2023 03:16:15 -0500 Subject: [PATCH] Fix retention dashboard not displaying correct month (#27180) --- app/javascript/mastodon/components/admin/Retention.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/admin/Retention.jsx b/app/javascript/mastodon/components/admin/Retention.jsx index 7bef96d8c47..2f567106826 100644 --- a/app/javascript/mastodon/components/admin/Retention.jsx +++ b/app/javascript/mastodon/components/admin/Retention.jsx @@ -9,11 +9,12 @@ import api from 'mastodon/api'; import { roundTo10 } from 'mastodon/utils/numbers'; const dateForCohort = cohort => { + const timeZone = 'UTC'; switch(cohort.frequency) { case 'day': - return ; + return ; default: - return ; + return ; } };