Skip to content

Commit 676bd61

Browse files
committed
Show 12hr time on hover too
Signed-off-by: Travis Ralston <travpc@gmail.com>
1 parent 045c32b commit 676bd61

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/components/views/messages/MessageTimestamp.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ limitations under the License.
1616

1717
'use strict';
1818

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

@@ -30,7 +29,7 @@ module.exports = React.createClass({
3029
render: function() {
3130
const date = new Date(this.props.ts);
3231
return (
33-
<span className="mx_MessageTimestamp" title={ DateUtils.formatFullDate(date) }>
32+
<span className="mx_MessageTimestamp" title={ DateUtils.formatFullDate(date, this.props.showTwelveHour) }>
3433
{ DateUtils.formatTime(date, this.props.showTwelveHour) }
3534
</span>
3635
);

0 commit comments

Comments
 (0)