-
-
Notifications
You must be signed in to change notification settings - Fork 54
Exdate showing blank array when EXDATE parameters exist in ical file #167
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
Comments
I'm having the exact same problem now with node-ical v0.15.1.
I first thought this had to do with this event had a recurrence, but all my calendars which has events with exdates in ics are missing Event from ICS
Recurrence event moved out of range
Event parsed through node-ical"040000008200E00074C5B7101A82E0080000000040C4A302812CD80100000000000000001000000029A1E9F657F7DC4C89FECB693B75F0FC": {
"type": "VEVENT",
"params": [],
"rrule": {
"_cache": {
"all": false,
"before": [],
"after": [],
"between": []
},
"origOptions": {
"tzid": "Europe/Berlin",
"dtstart": "2022-03-09T08:30:00.000Z",
"freq": 2,
"until": "2022-10-05T07:30:00.000Z",
"interval": 2,
"byweekday": [
{
"weekday": 2
}
],
"wkst": {
"weekday": 0
}
},
"options": {
"freq": 2,
"dtstart": "2022-03-09T08:30:00.000Z",
"interval": 2,
"wkst": 0,
"count": null,
"until": "2022-10-05T07:30:00.000Z",
"tzid": "Europe/Berlin",
"bysetpos": null,
"bymonth": null,
"bymonthday": [],
"bynmonthday": [],
"byyearday": null,
"byweekno": null,
"byweekday": [
2
],
"bynweekday": null,
"byhour": [
8
],
"byminute": [
30
],
"bysecond": [
0
],
"byeaster": null
}
},
"exdate": [],
"uid": "040000008200E00074C5B7101A82E0080000000040C4A302812CD80100000000000000001000000029A1E9F657F7DC4C89FECB693B75F0FC",
"summary": "Event name",
"start": "2022-03-09T08:30:00.000Z",
"datetype": "date-time",
"end": "2022-03-09T10:00:00.000Z",
"class": "PUBLIC",
"priority": "5",
"dtstamp": "2022-04-18T09:34:19.000Z",
"transparency": "OPAQUE",
"status": "CONFIRMED",
"sequence": "0",
"location": "Microsoft Teams-møte",
"MICROSOFT-CDO-APPT-SEQUENCE": "0",
"MICROSOFT-CDO-BUSYSTATUS": "BUSY",
"MICROSOFT-CDO-INTENDEDSTATUS": "BUSY",
"MICROSOFT-CDO-ALLDAYEVENT": "FALSE",
"MICROSOFT-CDO-IMPORTANCE": "1",
"MICROSOFT-CDO-INSTTYPE": "1",
"MICROSOFT-DONOTFORWARDMEETING": "FALSE",
"MICROSOFT-DISALLOW-COUNTER": "FALSE",
"method": "PUBLISH",
"recurrences": {
"2022-03-23": {
"type": "VEVENT",
"params": [],
"uid": "040000008200E00074C5B7101A82E0080000000040C4A302812CD80100000000000000001000000029A1E9F657F7DC4C89FECB693B75F0FC",
"recurrenceid": "2022-03-23T08:30:00.000Z",
"summary": "Event name",
"start": "2022-03-23T09:00:00.000Z",
"datetype": "date-time",
"end": "2022-03-23T10:00:00.000Z",
"class": "PUBLIC",
"priority": "5",
"dtstamp": "2022-04-18T09:34:19.000Z",
"transparency": "OPAQUE",
"status": "CONFIRMED",
"sequence": "1",
"location": "Microsoft Teams-møte",
"MICROSOFT-CDO-APPT-SEQUENCE": "1",
"MICROSOFT-CDO-BUSYSTATUS": "BUSY",
"MICROSOFT-CDO-INTENDEDSTATUS": "BUSY",
"MICROSOFT-CDO-ALLDAYEVENT": "FALSE",
"MICROSOFT-CDO-IMPORTANCE": "1",
"MICROSOFT-CDO-INSTTYPE": "3",
"MICROSOFT-DONOTFORWARDMEETING": "FALSE",
"MICROSOFT-DISALLOW-COUNTER": "FALSE"
}
}
} |
I stumbled over the exact same issue when debugging why excluded dates are not properly handled. Is here any workaround available? or did this work in older versions? |
I found a temporary workaround.
This will spit out the array of excluded starting times from the corrupted array. You will still have to manually remove them from the rrule dates. In the loop of rrule dates: |
this is a side effect of json stringify. exdate is not a proper json object so is not printed use the , exdate in console.log() |
Here's the code I'm running.
This is a snippet from the ICS file:
This is the corresponding item in the JSON.
The text was updated successfully, but these errors were encountered: