JonasWanke / rrule

🔁 Recurrence rule parsing & calculation as defined in the iCalendar RFC
https://pub.dev/packages/rrule
Apache License 2.0
52 stars 22 forks source link

DTSTART support #41

Closed godzeit closed 2 years ago

godzeit commented 2 years ago

According to documentation of iCalendar-RFC-5545 (https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html), rrules might contain DTSTART, which is also my case, because the web application of our project, saves the format rrule like that "DTSTART:20220629T000000Z\nRRULE:FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR,SA,SU". Unfortunately as it seems, this is the only lib for rrule on dart, and i didn't find the DTSTART support in documentation. Please, help me out!

JonasWanke commented 2 years ago

The DTSTART property is separate from the RRULE property in an iCalendar file. DTSTARTs can also be defined with a time zone, which is out of scope without there being a dedicated, well-maintained package for handling time zones in Dart. Therefore, rrule doesn't parse the DTSTART property.

You can still handle the de-/serialization of that property yourself, though, and then pass it to rrule.getInstances(start: myParsedDtstart).

godzeit commented 2 years ago

Thank you very much, for your explanation. Will do!