Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't format some yearly events #21

Open
KristianTashkov opened this issue Sep 30, 2020 · 2 comments
Open

Can't format some yearly events #21

KristianTashkov opened this issue Sep 30, 2020 · 2 comments

Comments

@KristianTashkov
Copy link

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 KristianTashkov changed the title Can't format yearly events Can't format some yearly events Sep 30, 2020
@neilmdixit
Copy link

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

@KristianTashkov
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants