Parsed RecurrenceProperties differs from its previously string-generated version

Hello,

I am trying out the Calendar and it has been awesome so far. However, I am facing this issue: I am allowing the user to create recurrence rules and everything works great, except, for example, with events that happen every 2 days with no end date. If I create the following recurrence and generate it as a recurrence rule, the calendar correctly displays the event every two days:

     RecurrenceProperties props = RecurrenceProperties(
      interval: 2,
      recurrenceType: RecurrenceType.daily,
      recurrenceRange: RecurrenceRange.noEndDate,
    );
    var startDate = DateTime.now();
    String rule = SfCalendar.generateRRule(props, startDate, startDate.add(const Duration(hours: 1)));
    // rule is 'FREQ=DAILY;INTERVAL=2'

Then, if I try to parse the rule to update its corresponding RecurrenceProperties, I end up with the following:

RecurrenceProperties parsed = SfCalendar.parseRRule(rule, startDate);
// parsed has interval: 1.

If I try to generate the rule out of parsed, I get 'FREQ=DAILY;INTERVAL=1' (interval is different). Any ideas what I could be missing here?

3 Replies

IR Indumathi Ravichandran Syncfusion Team May 11, 2020 11:49 AM UTC

Hi Luis, 
 
Thank you for contacting Syncfusion support. 
 
Currently we are validating the issue. We will validate and let you know the further details on or before May 13, 2020. We appreciate your patience until then. 
 
Regards, 
Indumathi R 



IR Indumathi Ravichandran Syncfusion Team May 13, 2020 11:23 AM UTC

Hi Luis, 
 
Thank you for your patience. 
 
We are confirmed this as an issue “Recurrence properties shows inappropriate interval in parseRRule() of the Flutter calendarand we have logged the bug report for the same. We will include the issue fix in our upcoming weekly nuget package, which is expected to rollout May 26, 2020. We appreciate your patience until then. 
 
You can track the current status of this report by the following link, 
 
 
Note: The provided feedback link is private, and you need to login to view this feedback. 
 
Regards, 
Indumathi R 



IR Indumathi Ravichandran Syncfusion Team May 20, 2020 05:22 AM UTC

Hi Luis, 
 
Thank you for your patience. 
 
We are fixed the mentioned issue “Recurrence properties shows inappropriate interval in parseRRule() of the Flutter calendar” and included the issue fix in our latest Weekly NuGet release package 18.1.53-beta. Kindly update to the latest version to resolve the mentioned issue. Please find the changelog tab for the same. 
 
 
We hope that this helps you. Please let us know if you need further assistance. 
 
Regards, 
Indumathi R 


Loader.
Up arrow icon