Completed
Last Updated: 22 Oct 2015 15:03 by ADMIN
ADMIN
Telerik Admin
Created on: 20 Mar 2012 09:32
Category: Scheduler
Type: Bug Report
8
FIX RadScheduler recurrence rule not synchronize other properties when there is an offset

		
1 comment
ADMIN
Bozhidar
Posted on: 20 Oct 2015 13:57
The internal string representation of the Recurrence rule cannot be changed, since it will be a major breaking change. We did however add a new TryParse static method to the RecurrenceRule class, that accepts a TimeZoneID as a parameter, which will output the correct Occurrences. For instance:

RecurrenceRule rrule;
string recurrenceRule = @"DTSTART:20150824T020000Z
DTEND:20150824T033000Z
RRULE:FREQ=DAILY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU
EXDATE:20150825T020000Z,20150826T020000Z";
string timeZoneID = "W. Europe Standard Time";

if (RecurrenceRule.TryParse(recurrenceRule, timeZoneID, out rrule))
{
    var count = rrule.Occurrences.Count();
}