Unclear RFC definition for ical whole day events

This commit is contained in:
Stefan Schlott 2013-08-28 12:32:14 +02:00
parent e94ddcb4ca
commit dbccf93a8d

View file

@ -9,7 +9,7 @@ cal = RiCal.Calendar do |cal|
event.summary = e[:title]
event.description = ""
event.dtstart = e[:startdate]
event.dtend = e[:enddate]
event.dtend = (e[:enddate]+1) # Unclear RFC definition, see http://www.bedework.org/trac/bedework/wiki/Bedework/DevDocs/DtstartEndNotes
if e[:location]
if e[:location][:details]
event.location = "#{e[:location][:name]}, #{e[:location][:details]}"