blob: 0e1835b54b749d8fc8e6200b58c9e3756a1d651e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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
|