diff options
author | Björn Roland <bjoernr-de@users.noreply.github.com> | 2017-01-27 14:06:51 +0100 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-01-27 08:06:51 -0500 |
commit | cfbace70ca4222e7abba92c5e3af7440539452c7 (patch) | |
tree | cdffb2c9f76add8909e5fb657e8590c3956cad61 /webapp/components/rhs_root_post.jsx | |
parent | d72547433af3ec5829ce0de4f4e1cfd440be7142 (diff) | |
download | chat-cfbace70ca4222e7abba92c5e3af7440539452c7.tar.gz chat-cfbace70ca4222e7abba92c5e3af7440539452c7.tar.bz2 chat-cfbace70ca4222e7abba92c5e3af7440539452c7.zip |
#5108 Add datetime attribute to <time> elements (#5199)
* #5108 Add datetime attribute to <time> elements
* fix eslint errors
Diffstat (limited to 'webapp/components/rhs_root_post.jsx')
-rw-r--r-- | webapp/components/rhs_root_post.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index 4d2c221df..7d00e2322 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -417,7 +417,10 @@ export default class RhsRootPost extends React.Component { <li className='col__name'>{userProfile}</li> {botIndicator} <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)} </time> <OverlayTrigger |