PLT-443 Fix timestamps UI in center channel and RHS (#4463)

Этот коммит содержится в:
enahum
2016-11-04 18:20:13 -03:00
коммит произвёл Harrison Healey
родитель 7117fc0562
Коммит 20254073cb
3 изменённых файлов: 24 добавлений и 27 удалений

Просмотреть файл

@@ -6,7 +6,7 @@ import React from 'react';
import Constants from 'utils/constants.jsx';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import {FormattedTime} from 'react-intl';
import {getDateForUnixTicks} from 'utils/utils.jsx';
export default class PostTime extends React.Component {
constructor(props) {
@@ -28,12 +28,7 @@ export default class PostTime extends React.Component {
render() {
return (
<time className='post__time'>
<FormattedTime
value={this.props.eventTime}
hour='2-digit'
minute='2-digit'
hour12={!this.props.useMilitaryTime}
/>
{getDateForUnixTicks(this.props.eventTime).toLocaleString('en', {hour: '2-digit', minute: '2-digit', hour12: !this.props.useMilitaryTime})}
</time>
);
}