timezone
This commit is contained in:
parent
dbc8094d60
commit
ea9ba4f559
1 changed files with 4 additions and 2 deletions
|
@ -10,9 +10,11 @@ module IcalHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def event_for(item)
|
def event_for(item)
|
||||||
|
tzid = 'Europe/Brussels'
|
||||||
|
|
||||||
e = Icalendar::Event.new
|
e = Icalendar::Event.new
|
||||||
e.dtstart = item[:time]
|
e.dtstart = Icalendar::Values::DateTime.new item[:time], 'tzid' => tzid
|
||||||
e.dtend = item[:end] if item[:end]
|
e.dtend = Icalendar::Values::DateTime.new item[:end], 'tzid' => tzid if item[:end]
|
||||||
e.summary = item[:title]
|
e.summary = item[:title]
|
||||||
e.description = item[:description] + "\n\n" + item.reps[:text].compiled_content
|
e.description = item[:description] + "\n\n" + item.reps[:text].compiled_content
|
||||||
e.location = item[:location]
|
e.location = item[:location]
|
||||||
|
|
Loading…
Reference in a new issue