Skip to content

Commit

Permalink
Merge pull request #4092 from turt2live/travis/12hrtime-hotfix
Browse files Browse the repository at this point in the history
Show 12hr time on hover too
  • Loading branch information
ara4n authored May 30, 2017
2 parents e79df6a + 676bd61 commit 4493994
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/views/messages/MessageTimestamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ limitations under the License.

'use strict';

import * as UserSettingsStore from 'matrix-react-sdk/lib/UserSettingsStore';
const React = require('react');
const DateUtils = require('matrix-react-sdk/lib/DateUtils');

Expand All @@ -30,7 +29,7 @@ module.exports = React.createClass({
render: function() {
const date = new Date(this.props.ts);
return (
<span className="mx_MessageTimestamp" title={ DateUtils.formatFullDate(date) }>
<span className="mx_MessageTimestamp" title={ DateUtils.formatFullDate(date, this.props.showTwelveHour) }>
{ DateUtils.formatTime(date, this.props.showTwelveHour) }
</span>
);
Expand Down

0 comments on commit 4493994

Please sign in to comment.