From cfc0da77ac7d5b6351938bfa1a6b77a11065fc7a Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 28 Sep 2023 03:16:15 -0500 Subject: [PATCH] [Glitch] Fix retention dashboard not displaying correct month Port 7fddeca1907493fb327316c5447740922acb934f to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/components/admin/Retention.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/components/admin/Retention.jsx b/app/javascript/flavours/glitch/components/admin/Retention.jsx index 2cfc30b6fb..768dae1559 100644 --- a/app/javascript/flavours/glitch/components/admin/Retention.jsx +++ b/app/javascript/flavours/glitch/components/admin/Retention.jsx @@ -9,11 +9,12 @@ import api from 'flavours/glitch/api'; import { roundTo10 } from 'flavours/glitch/utils/numbers'; const dateForCohort = cohort => { + const timeZone = 'UTC'; switch(cohort.frequency) { case 'day': - return ; + return ; default: - return ; + return ; } };