Browse Source

fix hour format temporarily

an elegant fix needs to fix the bug in ECMA402
closed-social-v3
TA 3 years ago
parent
commit
14630f3f48
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/status/components/detailed_status.js

+ 1
- 1
app/javascript/mastodon/features/status/components/detailed_status.js View File

@ -264,7 +264,7 @@ class DetailedStatus extends ImmutablePureComponent {
<div className='detailed-status__meta'> <div className='detailed-status__meta'>
<a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener noreferrer'> <a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener noreferrer'>
<FormattedDate value={new Date(status.get('created_at'))} hour12={false} year='numeric' month='short' day='2-digit' hour='2-digit' minute='2-digit' />
<FormattedDate value={new Date(status.get('created_at'))} hour12={true} year='numeric' month='short' day='2-digit' hour='2-digit' minute='2-digit' />
</a>{visibilityLink}{applicationLink}{reblogLink} · {favouriteLink} </a>{visibilityLink}{applicationLink}{reblogLink} · {favouriteLink}
</div> </div>
</div> </div>

Loading…
Cancel
Save