Skip to content

Commit

Permalink
Fix retention dashboard not displaying correct month (#27180)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmstan authored and ClearlyClaire committed Oct 3, 2023
1 parent 787113a commit 1133e5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/javascript/mastodon/components/admin/Retention.jsx
Expand Up @@ -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} />;
}
};

Expand Down

0 comments on commit 1133e5b

Please sign in to comment.