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
parent 193fcde123
commit 2ac3755120
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

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)