From 2ac3755120ef06e6aff6ffe0d629b85aa405f803 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 10 Jan 2022 10:18:43 +0100 Subject: [PATCH] Fix ical export for undefined datetimes Closes #973 Signed-off-by: Thomas Citharel --- lib/service/export/icalendar.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/service/export/icalendar.ex b/lib/service/export/icalendar.ex index a514648d9..7ba32cc48 100644 --- a/lib/service/export/icalendar.ex +++ b/lib/service/export/icalendar.ex @@ -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)