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
|
||||
|
||||
def event_for(item)
|
||||
tzid = 'Europe/Brussels'
|
||||
|
||||
e = Icalendar::Event.new
|
||||
e.dtstart = item[:time]
|
||||
e.dtend = item[:end] if item[:end]
|
||||
e.dtstart = Icalendar::Values::DateTime.new item[:time], 'tzid' => tzid
|
||||
e.dtend = Icalendar::Values::DateTime.new item[:end], 'tzid' => tzid if item[:end]
|
||||
e.summary = item[:title]
|
||||
e.description = item[:description] + "\n\n" + item.reps[:text].compiled_content
|
||||
e.location = item[:location]
|
||||
|
|
Loading…
Reference in a new issue