mirror of https://github.com/vector-im/riot-web
Show 12hr time on hover too
Signed-off-by: Travis Ralston <travpc@gmail.com>pull/4092/head
parent
045c32bd2e
commit
676bd6196f
|
@ -16,7 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import * as UserSettingsStore from 'matrix-react-sdk/lib/UserSettingsStore';
|
|
||||||
const React = require('react');
|
const React = require('react');
|
||||||
const DateUtils = require('matrix-react-sdk/lib/DateUtils');
|
const DateUtils = require('matrix-react-sdk/lib/DateUtils');
|
||||||
|
|
||||||
|
@ -30,7 +29,7 @@ module.exports = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
const date = new Date(this.props.ts);
|
const date = new Date(this.props.ts);
|
||||||
return (
|
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) }
|
{ DateUtils.formatTime(date, this.props.showTwelveHour) }
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue