Alex
Alex

Reputation: 5646

All-day event in Lotus Notes using iCalendar

I am trying to create an .ics file that can be used to import all-day events.

I'm using the following code in the .ics file:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
UID:[email protected]
DTSTAMP:19970714T170000Z
ORGANIZER;CN=John Doe:MAILTO:[email protected]
DTSTART;TSID="GMT":20110719T040000
DTEND;TSID="GMT":20110719T200000
TRANSP:OPAQUE
SUMMARY:Holiday
X-LOTUS-UPDATE-SEQ:1
X-LOTUS-NOTESVERSION:2
X-LOTUS-APPTTYPE:2
END:VEVENT
END:VCALENDAR

I exported a test all-day event, so I could check the formatting, but it still does not display in the top panel as an all-day event.

Does anyone know how to get an event to appear as an all-day event in Lotus Notes?

Upvotes: 3

Views: 1994

Answers (2)

Jasper Duizendstra
Jasper Duizendstra

Reputation: 2617

This is a working example:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//innerjoin.org/NONSGML Innerjoin iCal Test Case Gen 20050301//EN

BEGIN:VEVENT
UID:20050301-96412-innerjoin-org
DTSTART;VALUE=DATE:20050301
DTEND;VALUE=DATE:20050302
DTSTAMP:20050301
URL:
 http://www.innerjoin.org/iCalendar/test-cases/20050301-20050302.txt
SUMMARY:
 Event from 20050301 to 20050302
DESCRIPTION:
 Event starting at 20050301 and lasting until 20050302\n
 - Option:  Starting on 20050301\n
 - Option:  Ending on 20050302\n
 - Default: No timezone specified\, using local time\n
 - Default: No status given\, not necessarily confirmed\n
 - Default: No class given\, treat event details as publicly accessible\n
 - Default: Event treated as opaque
END:VEVENT
END:VCALENDAR

Upvotes: 2

Alex
Alex

Reputation: 5646

The correct solution was to remove the time from the DTSTART and DTEND e.g.

DTSTART;TSID="GMT":20110719T040000  ==> DTSTART;TSID="GMT":20110719

Hope this helps some people.

Upvotes: 4

Related Questions