From 1f8030266840913af947e3386552ca2e5d2c87cd Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Fri, 9 Aug 2013 12:02:03 -0400 Subject: [PATCH] Use 12-hour time (with some exceptions). (imported from commit 0cb3cfe23c8696368e3dc8ac51eaa5419928f6f5) --- static/js/feature_flags.js | 3 ++- static/js/message_list.js | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/feature_flags.js b/static/js/feature_flags.js index 6d1da28c77..c8510272bd 100644 --- a/static/js/feature_flags.js +++ b/static/js/feature_flags.js @@ -5,7 +5,8 @@ var exports = {}; exports.always_open_compose = true; exports.mark_read_at_bottom = page_params.staging; exports.summarize_read_while_narrowed = page_params.staging; - +exports.twenty_four_hour_time = _.contains([], + page_params.email); return exports; }()); diff --git a/static/js/message_list.js b/static/js/message_list.js index a89ae1b2a8..90a810e28c 100644 --- a/static/js/message_list.js +++ b/static/js/message_list.js @@ -53,7 +53,10 @@ function add_display_time(message, prev) { } if (message.timestr === undefined){ - message.timestr = time.toString("HH:mm"); + message.timestr = time.toString("h:mmtt"); + if (feature_flags.twenty_four_hour_time) { + message.timestr = time.toString("HH:mm"); + } } }