recurrent
recurrent copied to clipboard
Can't format some yearly events
I've recently started using this in a project of mine and while parsing google calendar event recurrence rules I noticed it can't handle FREQ=YEARLY
. For example:
> format(parse('every year'))
'RRULE:INTERVAL=1;FREQ=YEARLY'
>format('RRULE:FREQ=YEARLY')
'RRULE:FREQ=YEARLY'
Thanks!
@KristianTashkov I had some similar issues, so I went digging in what I assume are unit tests in test.py. In your case, line 481 indicates that a 'yearly' frequency rule must also include a 'BYMONTHDAY or BYDAY or BYMONTH', otherwise it appears invalid. Hope this is helpful.
thanks @neilmdixit, I saw similar but it doesn't make sense in terms of how the library handles text or in general what is a correct recurrent rule. For my use case I just wrote myself a working implementation of the conversation without using the library.