summaryrefslogtreecommitdiffstats
path: root/web/react/components/time_since.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2016-02-04 11:53:38 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2016-02-05 08:35:31 -0800
commit1778eb81157bfaeb23881efce6f5e50ef6db25a7 (patch)
treeb1bb93dc47db00a7d8764e234ca9f7a20b3f9168 /web/react/components/time_since.jsx
parent9b8761df8de0b7b4dcda55ecce7750dc385e38c8 (diff)
downloadchat-1778eb81157bfaeb23881efce6f5e50ef6db25a7.tar.gz
chat-1778eb81157bfaeb23881efce6f5e50ef6db25a7.tar.bz2
chat-1778eb81157bfaeb23881efce6f5e50ef6db25a7.zip
Fixed issue with on-hover timestamps
Diffstat (limited to 'web/react/components/time_since.jsx')
-rw-r--r--web/react/components/time_since.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/time_since.jsx b/web/react/components/time_since.jsx
index ba8dbffcc..88d89017b 100644
--- a/web/react/components/time_since.jsx
+++ b/web/react/components/time_since.jsx
@@ -2,6 +2,7 @@
// See License.txt for license information.
import Constants from '../utils/constants.jsx';
+import * as Utils from '../utils/utils.jsx';
import {FormattedRelative, FormattedDate} from 'mm-intl';
@@ -24,7 +25,7 @@ export default class TimeSince extends React.Component {
if (this.props.sameUser) {
return (
<time className='post__time'>
- <FormattedRelative value={this.props.eventTime} />
+ {Utils.displayTime(this.props.eventTime)}
</time>
);
}