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

Ical import throws date parse exception

1 Answer 17 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 11 Nov 2011, 04:03 AM
The scheduleview ical importer throws date parse exception for appointment exported from google calendar.
It happens for recurring all day appointments with set end date like the example below.

Telerik.Windows.Controls.ScheduleView.ICalendar.DateParser.ParseUTC
throws exception: String was not recognized as a valid DateTime. for string "20111116"
It expects something of this format: "yyyyMMdd\\THHmmss\\Z"

The export from google calendar that caused this:

BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME: Calendar
X-WR-TIMEZONE:Europe/London
X-WR-CALDESC:
BEGIN:VTIMEZONE
TZID:Europe/London
X-LIC-LOCATION:Europe/London
BEGIN:DAYLIGHT
TZOFFSETFROM:+0000
TZOFFSETTO:+0100
TZNAME:BST
DTSTART:19700329T010000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0100
TZOFFSETTO:+0000
TZNAME:GMT
DTSTART:19701025T020000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;VALUE=DATE:20111116
DTEND;VALUE=DATE:20111117
RRULE:FREQ=WEEKLY;UNTIL=20111228;BYDAY=WE
DTSTAMP:20111111T024024Z
UID:vkvu1k17or5kdshf08hft85dnk@google.com
CREATED:20111111T023953Z
DESCRIPTION:
LAST-MODIFIED:20111111T023953Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:TestRecurring
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 16 Nov 2011, 10:36 AM
Hi Tina,

Thank you for reporting this issue, I've logged it and it will be fixed most probably for the next service pack.
You can track its progress in our public issue tracking system here.

As a token of gratitude for your involvement, I've updated your points.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ScheduleView
Asked by
Tina
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or