Fixed issue #1332: CalendarimportSync-Errors in Outlook 2016:

As described in https://github.com/icalendar/icalendar/issues/116
This commit is contained in:
Thorsten Eckel 2018-04-22 20:15:21 +02:00
parent 74dd1b21ec
commit c2042d0595

View file

@ -55,8 +55,8 @@ class CalendarSubscriptions
events_data.each do |event_data|
cal.event do |e|
e.dtstart = event_data[:dtstart]
e.dtend = event_data[:dtend]
e.dtstart = Icalendar::Values::DateTime.new(event_data[:dtstart], 'tzid' => 'UTC')
e.dtend = Icalendar::Values::DateTime.new(event_data[:dtend], 'tzid' => 'UTC')
if event_data[:alarm]
e.alarm do |a|
a.action = 'DISPLAY'