summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
authorBjörn Roland <bjoernr-de@users.noreply.github.com>2017-01-27 14:06:51 +0100
committerJoram Wilander <jwawilander@gmail.com>2017-01-27 08:06:51 -0500
commitcfbace70ca4222e7abba92c5e3af7440539452c7 (patch)
treecdffb2c9f76add8909e5fb657e8590c3956cad61 /webapp/components/post_view
parentd72547433af3ec5829ce0de4f4e1cfd440be7142 (diff)
downloadchat-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/post_view')
-rw-r--r--webapp/components/post_view/components/post_time.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/post_time.jsx b/webapp/components/post_view/components/post_time.jsx
index c8e57f6a9..caad12d4a 100644
--- a/webapp/components/post_view/components/post_time.jsx
+++ b/webapp/components/post_view/components/post_time.jsx
@@ -27,7 +27,10 @@ export default class PostTime extends React.Component {
render() {
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})}
</time>
);