Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

scheduled_messages: Explicitly pass date to compute_send_times().

Karl Stolley8447aa747c4a
diff --git a/web/src/scheduled_messages.js b/web/src/scheduled_messages.js
index e78bb0507e7..69a0f932124 100644
--- a/web/src/scheduled_messages.js
+++ b/web/src/scheduled_messages.js
@@ -177,7 +177,7 @@ export function get_count() {
}
export function get_filtered_send_opts(date) {
- const send_times = compute_send_times();
+ const send_times = compute_send_times(date);
const day = date.getDay(); // Starts with 0 for Sunday.
const hours = date.getHours();