Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
timerender: Fix comparison of Date objects.
Anders Kaseorg63eae63a0750
diff --git a/static/js/timerender.js b/static/js/timerender.jsindex 6f762cfc5e5..ffa5b716e20 100644--- a/static/js/timerender.js+++ b/static/js/timerender.js@@ -3,6 +3,7 @@ import {differenceInCalendarDays,format,formatISO,+ isEqual,isValid,parseISO,startOfToday,@@ -181,7 +182,7 @@ export function render_markdown_timestamp(time, text) {// testing purposes.export function update_timestamps() {const today = startOfToday();- if (today !== last_update) {+ if (!isEqual(today, last_update)) {const to_process = update_list;update_list = [];