Default to UTC when no timezone in user settings in recaps

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-06-26 17:52:07 +02:00
parent 2ec7457783
commit b1eeebe05a
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -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