forked from potsda.mn/mobilizon
Fix ical export for undefined datetimes
Closes #973 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
193fcde123
commit
2ac3755120
|
@ -163,6 +163,7 @@ defmodule Mobilizon.Service.Export.ICalendar do
|
|||
end
|
||||
|
||||
defp shift_tz(%DateTime{} = date, _), do: date
|
||||
defp shift_tz(nil, _), do: nil
|
||||
|
||||
defp organizer(%Event{attributed_to: %Actor{} = group}) do
|
||||
Actor.display_name(group)
|
||||
|
|
Loading…
Reference in a new issue