Reputation: 3272
I am having issues getting the right syntax for an all day event which spans multiple days. Here is my ICAL event:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//http://XXX//Event
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;TZID="America/Chicago";VALUE=DATE:20150809
DTEND;TZID="America/Chicago";VALUE=DATE:20150812
SUMMARY:Event Name
DESCRIPTION:Event Description
LOCATION:Event Location
END:VEVENT
END:VCALENDAR
Shows up great in Mac Calendar:
But in Outlook, it starts at 1AM and isn't marked as all day:
Upvotes: 5
Views: 6350
Reputation: 599
For context, not another answer: As @Evert said there is no place for a TimeZone in an iCAL date value, just a year, month and day:
https://www.rfc-editor.org/rfc/rfc2445#section-4.3.4
Formal Definition: The value type is defined by the following
notation:date = date-value date-value = date-fullyear date-month date-mday date-fullyear = 4DIGIT date-month = 2DIGIT ;01-12 date-mday = 2DIGIT ;01-28, 01-29, 01-30, 01-31 ;based on month/year
...
Example: The following represents July 14, 1997: 19970714
Upvotes: 0
Reputation: 3731
From what I just tested, it seems that Outlook does not allow all-day ICAL events to have a timezone specified. Seems stupid, but changing the file to this made it work:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//http://XXX//Event
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;VALUE=DATE:20150809
DTEND;VALUE=DATE:20150812
SUMMARY:Event Name
DESCRIPTION:Event Description
LOCATION:Event Location
END:VEVENT
END:VCALENDAR
Upvotes: 4