forked from matrix/element-web
19 lines
469 B
JavaScript
19 lines
469 B
JavaScript
var React = require('react');
|
|
|
|
var MessageTimestampController = require("../../../../src/controllers/atoms/MessageTimestamp");
|
|
|
|
module.exports = React.createClass({
|
|
displayName: 'MessageTimestamp',
|
|
mixins: [MessageTimestampController],
|
|
|
|
render: function() {
|
|
var date = new Date(this.props.ts);
|
|
return (
|
|
<span className="mx_MessageTimestamp">
|
|
{date.toLocaleTimeString()}
|
|
</span>
|
|
);
|
|
},
|
|
});
|
|
|