From bf08a91586db023bfc03e7967e1b19b60c1ea763 Mon Sep 17 00:00:00 2001 From: Absurdon Date: Fri, 10 Mar 2017 16:39:32 +0100 Subject: [PATCH] made messages show am/pm --- app/javascripts/components/message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascripts/components/message.js b/app/javascripts/components/message.js index fda231c..0ee95bd 100644 --- a/app/javascripts/components/message.js +++ b/app/javascripts/components/message.js @@ -114,7 +114,7 @@ const MessageBrowser = React.createClass({ const messages = this.state.messages.map(message => { return ( - {(new Date(message.createdAt)).toLocaleString()} + {(new Date(message.createdAt)).toString()} {message.author.username} {message.content} {message._id} @@ -362,7 +362,7 @@ const ChatMessage = React.createClass({ - {moment(this.props.message.createdAt).format("hh:mm DD/MM")}  + {moment(this.props.message.createdAt).format("LT DD/MM")}  {deleteButton}