SchedulerRecurrenceInfo.ParseRRule returns invalid WeekDays Sunday

Hello Syncfusion, 

it seems theres a bug in the method ParseRRule of the SchedulerRecurrenceInfo : 

For Weekly recurrence, it always returns WeekDays including the WeekDay "Sunday" even when Sunday is not in the recurrence.


Exemple with "FREQ=WEEKLY;BYDAY=SA;INTERVAL=1

var schedulerRecurrenceInfo = SchedulerRecurrenceManager.ParseRRule("FREQ=WEEKLY;BYDAY=SA;INTERVAL=1", DateTime.Now);
// Bug : shows Saturday + Sunday
Debug.WriteLine(schedulerRecurrenceInfo.WeekDays);

Can you please fix it or tell me a workaround ?
It seems the problem occurs because  WeekDays default value is Sunday, and we add days to this default value :


if (text.Contains("SA"))
{
    schedulerRecurrenceInfo.WeekDays |= SchedulerWeekDays.Saturday;
}

2 Replies

VO Vishal Omprasad Syncfusion Team June 24, 2024 12:12 PM UTC

Hi Alban,

We have found and fixed the reported scenario “SchedulerRecurrenceInfo.ParseRRule returns invalid WeekDays Sunday” in the .NET MAUI SfScheduler control from our end.  Currently, the issue fix is in the testing phase. Once the automation is ensured, we will include this issue fix in our upcoming weekly NuGet release update, which is expected to roll out on July 02, 2024. We will update you once the release has been rolled out. We appreciate your patience until then.

Regards,
Vishal O.



VM Vidyalakshmi Mani Syncfusion Team July 2, 2024 12:38 PM UTC

Hi Alban,


Regarding “SchedulerRecurrenceInfo.ParseRRule returns invalid WeekDays Sunday”:


We have fixed the reported issue and included the issue fix in our latest weekly NuGet release update version 26.1.40, which is available for download at nuget.org


Root cause: The root cause is that the default WeekDay is set to Sunday, and the provided WeekDays value is appended to this default value. 


We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.


Regards,

Vidyalakshmi M.



Loader.
Up arrow icon