12 hour clock ftw

This commit is contained in:
Jeremy Zhang 2017-04-08 01:20:10 -07:00
parent 7497518e38
commit cb5d8dc407

View File

@ -253,7 +253,7 @@ function format_bot_message(message) {
function parse_message_time(message) { function parse_message_time(message) {
var mome = moment(message.timestamp); var mome = moment(message.timestamp);
message.formatted_timestamp = mome.toDate().toString(); message.formatted_timestamp = mome.toDate().toString();
message.formatted_time = mome.format("HH:mm A"); message.formatted_time = mome.format("h:mm A");
return message; return message;
} }