Possible Bug with exporting to iCalendar and using in lotus notes

3 posts, 0 answers
  1. Brennan
    Brennan avatar
    39 posts
    Member since:
    Sep 2010

    Posted 08 Sep 2010 Link to this post

    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. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 14 Sep 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Brennan
    Brennan avatar
    39 posts
    Member since:
    Sep 2010

    Posted 15 Sep 2010 Link to this post

    This must be an issue on the lotus notes end of things then.  Thanks again Dobry.

Back to Top