Fix retention dashboard not displaying correct month (#27180)

lolsob-rspec
Michael Stanclift 2023-09-28 03:16:15 -05:00 committed by GitHub
parent 2979a5924b
commit 7fddeca190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -9,11 +9,12 @@ import api from 'mastodon/api';
import { roundTo10 } from 'mastodon/utils/numbers'; import { roundTo10 } from 'mastodon/utils/numbers';
const dateForCohort = cohort => { const dateForCohort = cohort => {
const timeZone = 'UTC';
switch(cohort.frequency) { switch(cohort.frequency) {
case 'day': 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: default:
return <FormattedDate value={cohort.period} month='long' year='numeric' />; return <FormattedDate value={cohort.period} month='long' year='numeric' timeZone={timeZone} />;
} }
}; };