From 0534a4c42d7da2a5628c55ff0e020f72dacd17c8 Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Mon, 5 Jun 2017 18:55:00 -0700 Subject: [PATCH] message-editing: Optimize timestamp format to display only hours & minutes --- static/js/message_edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/message_edit.js b/static/js/message_edit.js index 14b1b3e2a6..9c350c43c6 100644 --- a/static/js/message_edit.js +++ b/static/js/message_edit.js @@ -441,7 +441,7 @@ exports.show_history = function (message) { } // 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) { item.posted_or_edited = "Posted by"; item.body_to_render = msg.rendered_content;