This is a migrated thread and some comments may be shown as answers.

Possible Bug with exporting to iCalendar and using in lotus notes

2 Answers 135 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Brennan
Top achievements
Rank 1
Brennan asked on 08 Sep 2010, 07:03 PM
Hello all,

I think I may have found a bug with the Export function for the RadScheduler.  I used the Export function as follows:

Using stream As FileStream = File.Create("schedule.ics")
    Me.schAvailability.Export(stream, New SchedulerICalendarExporter)
End Using

and then used this iCal feed in lotus notes and got the error: "The content of this URL does not conform to the iCalendar parsing specification."  At first I thought this was because I was using a custom appointment object and editappointmentdialog.  Here is the contents of the .ics file produced from the export function:

BEGIN:VCALENDAR
PRODID:-//Telerik Inc.//NONSGML RadScheduler//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Mountain Standard Time
BEGIN:STANDARD
TZNAME:Mountain Standard Time
TZOFFSETTO:-0700
TZOFFSETFROM:-0600
RRULE:FREQ=YEARLY;BYDAY=SU;BYMONTH=11;BYSETPOS=1;WKST=MO
DTSTART:16010101T020000
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:-0700
TZOFFSETTO:-0600
DTSTART:20070101T020000
RRULE:FREQ=YEARLY;BYDAY=SU;BYMONTH=3;BYSETPOS=2;WKST=MO
TZNAME:Mountain Daylight Time
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=Mountain Standard Time:20100702T000000
DTEND;TZID=Mountain Standard Time:20100702T235900
SUMMARY:Vacation
DESCRIPTION:Vacation
UID:98ef45e7-e8b1-43b9-92f2-91cd7a9cf2fb
LOCATION:Vacation
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
BACKGROUND:BUSINESS
END:VEVENT
END:VCALENDAR

Please note the bolded lines.  This above .ics file did not load correctly in lotus notes and produced the error message I said above.

All I had to do to fix this error and get my ics file correctly working in lotus notes was make the following changes to the above bolded lines:

DTSTART:20100702T000000-0700
DTEND:20100702T235900-0700

Can you confirm that setting time zone as ;TZID=Mountain Standard Time: is indeed an issue (for lotus notes)?

EDIT: I found another fix for this.

We can leave the DTSTART and DTEND in VEVENT as is:
DTSTART;TZID=Mountain Standard Time:20100702T000000
DTEND;TZID=Mountain Standard Time:20100702T235900

BUT we have to add a timezone offset to the DTSTART (in STANDARD and DAYLIGHT) of VTIMEZONE

BEGIN:VTIMEZONE
TZID:Mountain Standard Time
BEGIN:STANDARD
TZNAME:Mountain Standard Time
TZOFFSETTO:-0700
TZOFFSETFROM:-0600
RRULE:FREQ=YEARLY;BYDAY=SU;BYMONTH=11;BYSETPOS=1;WKST=MO
DTSTART:16010101T020000-0700
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:-0700
TZOFFSETTO:-0600
DTSTART:20070101T020000-0700
RRULE:FREQ=YEARLY;BYDAY=SU;BYMONTH=3;BYSETPOS=2;WKST=MO
TZNAME:Mountain Daylight Time
END:DAYLIGHT
END:VTIMEZONE

2 Answers, 1 is accepted

Sort by
0
Dobry Zranchev
Telerik team
answered on 14 Sep 2010, 09:03 AM
Hello Brennan,

Thank you for writing.
 
Our export/import mechanism of the ICal format supports DTSTART and DTEND for the recurrence rules according to the ICal specification. Maybe, Lotus Notes does not provide a way to import/export according to this standard. You have two options to solve this problem.
1. Write custom a export class that exports ICal format that Lotus Notes can understand.
2. Modify the exported file removing the incorrect rows.

If you have other questions, feel free to contact us.

Best wishes,
Dobry Zranchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brennan
Top achievements
Rank 1
answered on 15 Sep 2010, 03:40 PM
This must be an issue on the lotus notes end of things then.  Thanks again Dobry.

Tags
Scheduler and Reminder
Asked by
Brennan
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
Brennan
Top achievements
Rank 1
Share this question
or