Search code examples
c#google-calendar-apiicalendardday

Google calendar incorrect imports DDay multiple-day events


I'm using a DDay library to create iCal file. Here's an example of one event that I created:

BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
PRODID:-//MyProduct
BEGIN:VEVENT
CATEGORIES:Office event
DESCRIPTION:Rudniy\, Kazahstan office has a work day.
DTEND;VALUE=DATE:20141207
DTSTAMP:20141230T085900Z
DTSTART;VALUE=DATE:20141206
SEQUENCE:0
SUMMARY:Work Day in RDN
UID:6418abbe-1904-40c4-8544-e87dd4f4c002
END:VEVENT
END:VCALENDAR

When I import that calendar to Google Calendar, the result event is only on 2014-12-06 and is one day long (instead of two). Can please somebody tell what's wrong?


Solution

  • Okay, finally I got it. The END date specifies NON-INCLUSIVE end date for event. So I just should add 1 day to each end date by myself.