Fix an issue with no default timezone
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
d7aa432cca
commit
48d17c122d
|
@ -170,7 +170,7 @@ defmodule Mobilizon.Service.DateTime do
|
||||||
options
|
options
|
||||||
) do
|
) do
|
||||||
notification_time = Keyword.get(options, :notification_time, ~T[08:00:00])
|
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)
|
DateTime.new!(date, notification_time, timezone)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue