feat: use <time> tag (#34131)

This commit is contained in:
scarf 2025-03-27 01:14:08 +09:00 committed by GitHub
parent c43508b3e0
commit e9fe01e2a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 42 additions and 16 deletions

View file

@ -37,6 +37,7 @@ import {
FollowingCounter,
StatusesCounter,
} from 'mastodon/components/counters';
import { FormattedDateWrapper } from 'mastodon/components/formatted_date';
import { Icon } from 'mastodon/components/icon';
import { IconButton } from 'mastodon/components/icon_button';
import { LoadingIndicator } from 'mastodon/components/loading_indicator';
@ -938,11 +939,12 @@ export const AccountHeader: React.FC<{
/>
</dt>
<dd>
{intl.formatDate(account.created_at, {
year: 'numeric',
month: 'short',
day: '2-digit',
})}
<FormattedDateWrapper
value={account.created_at}
year='numeric'
month='short'
day='2-digit'
/>
</dd>
</dl>