Fix retention dashboard not displaying correct month (#27180)
parent
6a3d09dde2
commit
91047c36b5
|
@ -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} />;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in New Issue