Fix ical export for undefined datetimes

Closes #973

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-01-10 10:18:43 +01:00 committed by tykayn
parent 23864deffe
commit b098ae202d

View File

@ -163,6 +163,7 @@ defmodule Mobilizon.Service.Export.ICalendar do
end end
defp shift_tz(%DateTime{} = date, _), do: date defp shift_tz(%DateTime{} = date, _), do: date
defp shift_tz(nil, _), do: nil
defp organizer(%Event{attributed_to: %Actor{} = group}) do defp organizer(%Event{attributed_to: %Actor{} = group}) do
Actor.display_name(group) Actor.display_name(group)