times as utc in ical
This commit is contained in:
parent
dbccf93a8d
commit
13180bc2fd
1 changed files with 7 additions and 2 deletions
|
|
@ -8,8 +8,13 @@ cal = RiCal.Calendar do |cal|
|
||||||
cal.event do |event|
|
cal.event do |event|
|
||||||
event.summary = e[:title]
|
event.summary = e[:title]
|
||||||
event.description = ""
|
event.description = ""
|
||||||
|
if e[:startdate].instance_of?(Date)
|
||||||
event.dtstart = e[:startdate]
|
event.dtstart = e[:startdate]
|
||||||
event.dtend = (e[:enddate]+1) # Unclear RFC definition, see http://www.bedework.org/trac/bedework/wiki/Bedework/DevDocs/DtstartEndNotes
|
event.dtend = (e[:enddate]+1) # Unclear RFC definition, see http://www.bedework.org/trac/bedework/wiki/Bedework/DevDocs/DtstartEndNotes
|
||||||
|
else
|
||||||
|
event.dtstart = e[:startdate].getutc
|
||||||
|
event.dtend = e[:enddate].getutc
|
||||||
|
end
|
||||||
if e[:location]
|
if e[:location]
|
||||||
if e[:location][:details]
|
if e[:location][:details]
|
||||||
event.location = "#{e[:location][:name]}, #{e[:location][:details]}"
|
event.location = "#{e[:location][:name]}, #{e[:location][:details]}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue