mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
PLT-5490: Add machine readable timestamps for search results (#5564)
This commit is contained in:
@@ -79,7 +79,10 @@ export default class SearchResultsItem extends React.Component {
|
||||
|
||||
timeTag(post) {
|
||||
return (
|
||||
<time className='search-item-time'>
|
||||
<time
|
||||
className='search-item-time'
|
||||
dateTime={Utils.getDateForUnixTicks(post.create_at).toISOString()}
|
||||
>
|
||||
<FormattedDate
|
||||
value={post.create_at}
|
||||
hour12={!this.props.useMilitaryTime}
|
||||
|
||||
Reference in New Issue
Block a user