From b1eeebe05ad3fb5e1e93bd31152d36c61e757bc8 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 26 Jun 2021 17:52:07 +0200 Subject: [PATCH] Default to UTC when no timezone in user settings in recaps Signed-off-by: Thomas Citharel --- lib/service/workers/send_activity_recap_worker.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/service/workers/send_activity_recap_worker.ex b/lib/service/workers/send_activity_recap_worker.ex index 5145ad778..c1a52a262 100644 --- a/lib/service/workers/send_activity_recap_worker.ex +++ b/lib/service/workers/send_activity_recap_worker.ex @@ -96,7 +96,7 @@ defmodule Mobilizon.Service.Workers.SendActivityRecapWorker do timezone: timezone } }) do - is_between_hours(timezone: timezone) + is_between_hours(timezone: timezone || "Etc/UTC") end # If we're on the first day of the week between notification hours @@ -107,6 +107,6 @@ defmodule Mobilizon.Service.Workers.SendActivityRecapWorker do timezone: timezone } }) do - is_between_hours_on_first_day(timezone: timezone, locale: locale) + is_between_hours_on_first_day(timezone: timezone || "Etc/UTC", locale: locale) end end