~cytrogen/masto-fe

7fddeca1907493fb327316c5447740922acb934f — Michael Stanclift 2 years ago 2979a59
Fix retention dashboard not displaying correct month (#27180)

1 files changed, 3 insertions(+), 2 deletions(-)

M app/javascript/mastodon/components/admin/Retention.jsx
M app/javascript/mastodon/components/admin/Retention.jsx => app/javascript/mastodon/components/admin/Retention.jsx +3 -2
@@ 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 <FormattedDate value={cohort.period} month='long' day='2-digit' />;
    return <FormattedDate value={cohort.period} month='long' day='2-digit' timeZone={timeZone} />;
  default:
    return <FormattedDate value={cohort.period} month='long' year='numeric' />;
    return <FormattedDate value={cohort.period} month='long' year='numeric' timeZone={timeZone} />;
  }
};