1
0
Fork 0
forked from gitea/nas

Merge remote-tracking branch 'parent/main' into kb_development

This commit is contained in:
KMY 2023-09-30 19:37:20 +09:00
commit 3c649aa74d
56 changed files with 949 additions and 922 deletions

View file

@ -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} />;
}
};