time format short

This commit is contained in:
feruz 2019-12-21 10:34:54 +02:00
parent c5f5d20b88
commit ce6a1709d8
3 changed files with 11 additions and 1 deletions

View File

@ -37,6 +37,8 @@ const UserListItem = ({
<FormattedRelativeTime <FormattedRelativeTime
value={description.value} value={description.value}
numeric="auto" numeric="auto"
// eslint-disable-next-line react/style-prop-object
style="short"
unit={description.unit} unit={description.unit}
/> />
</Text> </Text>

View File

@ -81,7 +81,13 @@ class PostHeaderDescription extends PureComponent {
{isPromoted ? ( {isPromoted ? (
intl.formatMessage({ id: 'post.sponsored' }) intl.formatMessage({ id: 'post.sponsored' })
) : ( ) : (
<FormattedRelativeTime value={date.value} numeric="auto" unit={date.unit} /> <FormattedRelativeTime
value={date.value}
// eslint-disable-next-line react/style-prop-object
style="short"
numeric="auto"
unit={date.unit}
/>
)} )}
</Text> </Text>
{isShowOwnerIndicator && ( {isShowOwnerIndicator && (

View File

@ -335,6 +335,8 @@ class UpvoteView extends Component {
<FormattedRelativeTime <FormattedRelativeTime
value={payoutDate.value} value={payoutDate.value}
numeric="auto" numeric="auto"
// eslint-disable-next-line react/style-prop-object
style="short"
unit={payoutDate.unit} unit={payoutDate.unit}
/> />
</Text> </Text>