Fix an issue with no default timezone

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-04-18 16:59:45 +02:00
parent d7aa432cca
commit 48d17c122d
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -170,7 +170,7 @@ defmodule Mobilizon.Service.DateTime do
options
) do
notification_time = Keyword.get(options, :notification_time, ~T[08:00:00])
timezone = Keyword.get(options, :timezone, "Etc/UTC")
timezone = Keyword.get(options, :timezone, "Etc/UTC") || "Etc/UTC"
DateTime.new!(date, notification_time, timezone)
end