make times for messages show right format

This commit is contained in:
Absurdon 2017-03-08 23:36:57 +01:00
parent 9433deab83
commit b412fba746

View file

@ -114,7 +114,7 @@ const MessageBrowser = React.createClass({
const messages = this.state.messages.map(message => {
return (
<tr key={message._id}>
<td className="col-xs-2">{(new Date(message.createdAt)).toString()}</td>
<td className="col-xs-2">{(new Date(message.createdAt)).toLocaleString()}</td>
<td className="col-xs-3">{message.author.username}</td>
<td className="col-xs-5">{message.content}</td>
<td className="col-xs-2">{message._id}</td>