I am using a python script to import calendar entries from one tool to google calendar. I have no problems with events that repeat weekly, but the monthly repeating events get created incorrectly.
I want to create a calendar event that happens on the first Wednesday of every month.
The event created either occurs only once or occurs weekly, even though the properties say some form of Monthly.
I have tried the following rules:
RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=WE
RRULE:FREQ=MONTHLY;BYDAY=WE;
RRULE:FREQ=MONTHLY;BYMONTHDAY=1;BYDAY=WE
I've been using https://datatracker.ietf.org/doc/html/rfc5545#section-3.8.5 as a reference, along with other google search results, but nothing seems to let me create the event correctly. Any clues as to what I am missing?
The full event description:
google_data = {
'summary': event_data['summary'],
'description': event_data['description'],
'start': {
'dateTime': event_data['start'],
'timeZone': 'America/New_York',
},
'end': {
'dateTime': event_data['end'],
'timeZone': 'America/New_York',
},
'attendees': [event_data['attendees']],
'location': event_data['location'],
'recurrence': [rrules], }

'recurrence': [rrules]This is not helpful, because we have no idea what the variablerrulesactually contains. And the same forevent_data. Can you show us the actual values of those variables?rrules = 'RRULE:FREQ=WEEKLY'with all other values the same, but fails as soon as I try to make it monthly on the first wednesday of the month. withrrules = 'RRULE:FREQ=MONTHLY'makes it recurring on the day of the month, for example the 4 of every month.event_data['start']is in fact a Wednesday, because if it isn't, this issue may occur. You don't need to show us all your actual data, but surely you can come up with example values ofevent_datathat would cause the issue - but shouldn't, according to you?