From 48d17c122d2963e743170459d4e0f39174ff8d0f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 18 Apr 2022 16:59:45 +0200 Subject: [PATCH] Fix an issue with no default timezone Signed-off-by: Thomas Citharel --- lib/service/date_time/date_time.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/service/date_time/date_time.ex b/lib/service/date_time/date_time.ex index 9c2a82789..2332a26ad 100644 --- a/lib/service/date_time/date_time.ex +++ b/lib/service/date_time/date_time.ex @@ -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