I am importing ICS files via a bash script into my GCalendar, but I am having problems with some of the files.
This is an example of payload that keeps giving me errors:
{"summary":"Name","start":{"dateTime":"2023-02-16T14:30:00","timeZone":"Europe/Prague"},"end":{"dateTime":"2023-02-16T15:15:00","timeZone":"Europe/Prague"},"recurrence":["RRULE:FREQ=DAILY;UNTIL=20240131T235959;INTERVAL=28;WKST=SU"]}
Formatted for readability:
{
"summary": "Name",
"start": {
"dateTime": "2023-02-16T14:30:00",
"timeZone": "Europe/Prague"
},
"end": {
"dateTime": "2023-02-16T15:15:00",
"timeZone": "Europe/Prague"
},
"recurrence": [
"RRULE:FREQ=DAILY;UNTIL=20240131T235959;INTERVAL=28;WKST=SU"
]
}
For this payload I get an "Invalid recurrence rule" error. I have checked the RFC and dont see any issue with this.
Answering my own question - the issue was with the "WKST=SU" parameter - apparently GCal API doesnt like it