BEGIN:VCALENDAR PRODID:-//volse.net//NONSGML ramaskrik-program-generator//NB VERSION:2.0 DTSTAMP;TZID=Europe/Oslo:<%= DateTime.now.strftime('%Y%m%dT%H%M%S') %> <% eventlist.each do |date, events| %> <% events.events.each do |e| %> BEGIN:VEVENT UUID:<%= e.slug %> DTSTAMP;TZID=Europe/Oslo:<%= DateTime.now.strftime('%Y%m%dT%H%M%S') %> DTSTART;TZID=Europe/Oslo:<%= e.start_time.strftime('%Y%m%dT%H%M%S') %> DTEND;TZID=Europe/Oslo:<%= e.end_time.strftime('%Y%m%dT%H%M%S') %> SUMMARY:<%= e.title %> LOCATION:<%= e.venue %> END:VEVENT <% end %> <% end %> END:VCALENDAR