PLT-443 Fix timestamps UI in center channel and RHS (#4463)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
7117fc0562
Коммит
20254073cb
@@ -19,7 +19,7 @@ import * as PostUtils from 'utils/post_utils.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
import {Tooltip, OverlayTrigger} from 'react-bootstrap';
|
||||
|
||||
import {FormattedMessage, FormattedDate} from 'react-intl';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import loadingGif from 'images/load.gif';
|
||||
|
||||
@@ -386,6 +386,15 @@ export default class RhsComment extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
const timeOptions = {
|
||||
day: 'numeric',
|
||||
month: 'short',
|
||||
year: 'numeric',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
hour12: !this.props.useMilitaryTime
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={'post post--thread ' + currentUserCss + ' ' + compactClass}>
|
||||
<div className='post__content'>
|
||||
@@ -398,15 +407,7 @@ export default class RhsComment extends React.Component {
|
||||
{botIndicator}
|
||||
<li className='col'>
|
||||
<time className='post__time'>
|
||||
<FormattedDate
|
||||
value={post.create_at}
|
||||
day='numeric'
|
||||
month='short'
|
||||
year='numeric'
|
||||
hour12={!this.props.useMilitaryTime}
|
||||
hour='2-digit'
|
||||
minute='2-digit'
|
||||
/>
|
||||
{Utils.getDateForUnixTicks(post.create_at).toLocaleString('en', timeOptions)}
|
||||
</time>
|
||||
{flagTrigger}
|
||||
</li>
|
||||
|
||||
Ссылка в новой задаче
Block a user