* #5108 Add datetime attribute to <time> elements * fix eslint errors
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
d72547433a
Коммит
cfbace70ca
@@ -27,7 +27,10 @@ export default class PostTime extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<time className='post__time'>
|
<time
|
||||||
|
className='post__time'
|
||||||
|
dateTime={getDateForUnixTicks(this.props.eventTime).toISOString()}
|
||||||
|
>
|
||||||
{getDateForUnixTicks(this.props.eventTime).toLocaleString('en', {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>
|
</time>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -478,7 +478,10 @@ export default class RhsComment extends React.Component {
|
|||||||
</li>
|
</li>
|
||||||
{botIndicator}
|
{botIndicator}
|
||||||
<li className='col'>
|
<li className='col'>
|
||||||
<time className='post__time'>
|
<time
|
||||||
|
className='post__time'
|
||||||
|
dateTime={Utils.getDateForUnixTicks(post.create_at).toISOString()}
|
||||||
|
>
|
||||||
{Utils.getDateForUnixTicks(post.create_at).toLocaleString('en', timeOptions)}
|
{Utils.getDateForUnixTicks(post.create_at).toLocaleString('en', timeOptions)}
|
||||||
</time>
|
</time>
|
||||||
{flagTrigger}
|
{flagTrigger}
|
||||||
|
|||||||
@@ -417,7 +417,10 @@ export default class RhsRootPost extends React.Component {
|
|||||||
<li className='col__name'>{userProfile}</li>
|
<li className='col__name'>{userProfile}</li>
|
||||||
{botIndicator}
|
{botIndicator}
|
||||||
<li className='col'>
|
<li className='col'>
|
||||||
<time className='post__time'>
|
<time
|
||||||
|
className='post__time'
|
||||||
|
dateTime={Utils.getDateForUnixTicks(post.create_at).toISOString()}
|
||||||
|
>
|
||||||
{Utils.getDateForUnixTicks(post.create_at).toLocaleString('en', timeOptions)}
|
{Utils.getDateForUnixTicks(post.create_at).toLocaleString('en', timeOptions)}
|
||||||
</time>
|
</time>
|
||||||
<OverlayTrigger
|
<OverlayTrigger
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user