Changements format ical

This commit is contained in:
echarp 2014-08-25 23:37:47 +02:00
parent 467a21ac76
commit d385c5c643
2 changed files with 4 additions and 4 deletions

View File

@ -7,12 +7,12 @@ CALSCALE:GREGORIAN
X-WR-CALDESC:<%= t 'title', scope: [:layouts, :application] %>
<% @events.find_each do |event| %>
BEGIN:VEVENT
DTSTART;TZID=Europe/Paris:<%= event.start_time.strftime '%Y%m%dT%H%M%S' %>
DTEND;TZID=Europe/Paris:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
DTSTART:<%= event.start_time.strftime '%Y%m%dT%H%M%S' %>
DTEND:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title %>
URL:<%= event_url event %>
DESCRIPTION:<%= strip_tags(event.description).gsub(/\r/, '').gsub /^/, ' ' %>
DESCRIPTION:<%= strip_tags(event.description).to_crlf.gsub(/\r/, '').gsub /^/, ' ' %>
LOCATION:<%= event.full_address %>
END:VEVENT
<% end %>

View File

@ -12,7 +12,7 @@ DTEND;TZID=Europe/Paris:<%= event.end_time.strftime '%Y%m%dT%H%M%S' %>
UID:<%= event.id %>@agendadulibre.org
SUMMARY:<%= event.title %>
URL:<%= event_url event %>
DESCRIPTION:<%= strip_tags(event.description).gsub(/\r/, '').gsub /^/, ' ' %>
DESCRIPTION:<%= strip_tags(event.description).to_crlf.gsub(/\r/, '').gsub /^/, ' ' %>
LOCATION:<%= event.full_address %>
END:VEVENT
END:VCALENDAR