BEGIN:VCALENDAR VERSION:2.0 PRODID:-//AgendaDuLibre.org X-WR-CALNAME:Agenda du Libre X-WR-TIMEZONE:Europe/Paris CALSCALE:GREGORIAN X-WR-CALDESC:L'Agenda des évènements autour du Libre <% @events.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' %> UID:<%= event.id %>@agendadulibre.org SUMMARY:<%= event.title %> URL:<%= event_url event %> DESCRIPTION:Un évènement de l'Agenda du Libre LOCATION:<%= event.city.gsub('-', ' ') %> END:VEVENT <% end %> END:VCALENDAR