recurrent icon indicating copy to clipboard operation
recurrent copied to clipboard

Can't format some yearly events

Open KristianTashkov opened this issue 4 years ago • 2 comments

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 avatar Sep 30 '20 16:09 KristianTashkov

@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.

neilmdixit avatar Feb 07 '21 23:02 neilmdixit

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.

KristianTashkov avatar Feb 09 '21 13:02 KristianTashkov