summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAri Autio <ari.autio@iki.fi>2017-03-01 01:53:13 +0200
committerenahum <nahumhbl@gmail.com>2017-02-28 20:53:13 -0300
commit48d124ec9aee139c00538b17c1cf978015641c8e (patch)
treed0c13cbb2f3abda9a377be40431ae3864cfc47e5
parentdf07aeeb126954ed14e393a3a09d28c4bbf630fb (diff)
downloadchat-48d124ec9aee139c00538b17c1cf978015641c8e.tar.gz
chat-48d124ec9aee139c00538b17c1cf978015641c8e.tar.bz2
chat-48d124ec9aee139c00538b17c1cf978015641c8e.zip
PLT-5490: Add machine readable timestamps for search results (#5564)
-rw-r--r--webapp/components/search_results_item.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx
index 8f885e967..b3de3492c 100644
--- a/webapp/components/search_results_item.jsx
+++ b/webapp/components/search_results_item.jsx
@@ -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}