Fix iCalendar Export by updating the iCalendar library
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -17,13 +17,13 @@ defmodule Mobilizon.Service.ICalendarTest do
|
||||
BEGIN:VCALENDAR
|
||||
CALSCALE:GREGORIAN
|
||||
VERSION:2.0
|
||||
PRODID:-//ICalendar//Mobilizon #{Mobilizon.Config.instance_version()}//EN
|
||||
PRODID:-//Elixir ICalendar//Mobilizon #{Mobilizon.Config.instance_version()}//EN
|
||||
BEGIN:VEVENT
|
||||
CATEGORIES:#{event.tags |> Enum.map(& &1.title) |> Enum.join(",")}
|
||||
DESCRIPTION:Ceci est une description avec une première phrase assez longue\\,\\n puis sur une seconde ligne
|
||||
DTEND:#{Value.to_ics(event.ends_on)}
|
||||
DTSTAMP:#{Value.to_ics(event.publish_at)}
|
||||
DTSTART:#{Value.to_ics(event.begins_on)}
|
||||
DTEND:#{Value.to_ics(event.ends_on)}Z
|
||||
DTSTAMP:#{Value.to_ics(event.publish_at)}Z
|
||||
DTSTART:#{Value.to_ics(event.begins_on)}Z
|
||||
GEO:#{event.physical_address |> Address.coords() |> Tuple.to_list() |> Enum.join(";")}
|
||||
LOCATION:#{Address.representation(event.physical_address)}
|
||||
SUMMARY:#{event.title}
|
||||
|
||||
Reference in New Issue
Block a user