message-editing: Optimize timestamp format to display only hours & minutes

This commit is contained in:
Jack Zhang 2017-06-05 18:55:00 -07:00 committed by Tim Abbott
parent 64ab1080dc
commit 0534a4c42d
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ exports.show_history = function (message) {
} }
// Format timestamp nicely for display // Format timestamp nicely for display
var item = {timestamp: timerender.get_full_time(msg.timestamp)}; var item = {timestamp: moment(timerender.get_full_time(msg.timestamp)).format("h:mm A")};
if (index === 0) { if (index === 0) {
item.posted_or_edited = "Posted by"; item.posted_or_edited = "Posted by";
item.body_to_render = msg.rendered_content; item.body_to_render = msg.rendered_content;