Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
timestamp: Observe user's 24-hour clock setting.
Sebastian Morrbb12e407d223
diff --git a/static/js/timerender.js b/static/js/timerender.jsindex e3e2574333f..41ae31e1dd6 100644--- a/static/js/timerender.js+++ b/static/js/timerender.js@@ -171,7 +171,8 @@ exports.render_markdown_timestamp = function (time, now, text) {now = now.tz(page_params.timezone);time = time.tz(page_params.timezone);}- const timestring = time.format('ddd, MMM D YYYY, h:mm A');+ const hourformat = page_params.twenty_four_hour_time ? 'HH:mm' : 'h:mm A';+ const timestring = time.format('ddd, MMM D YYYY, ' + hourformat);const titlestring = "This time is in your timezone. Original text was '" + text + "'.";return {text: timestring,