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

calendar recurring events are broken since update to node-ical v0.15.x #2913

Closed
khassel opened this issue Sep 20, 2022 · 4 comments
Closed

Comments

@khassel
Copy link
Collaborator

khassel commented Sep 20, 2022

Because of #2911 this was not detected earlier.

We upgraded node-ical from v0.13.0 to v0.15.1 with mm release v2.19.0.

With the newer node-ical version the recurring event tests are not working anymore, I disabled them until this is solved.

Loading tests/configs/data/calendar_test_recurring.ics fails with

[19.09.2022 21:08.00.279] [ERROR] Calendar Error. Could not fetch calendar:  http://localhost:8080/tests/configs/data/calendar_test_recurring.ics TypeError: curr.start.getTime is not a function
at Object.originalEnd (/opt/magic_mirror/node_modules/node-ical/ical.js:423:44)
at Object.END (/opt/magic_mirror/node_modules/node-ical/ical.js:602:26)
at Object.handleObject (/opt/magic_mirror/node_modules/node-ical/ical.js:634:39)
at Object.parseLines (/opt/magic_mirror/node_modules/node-ical/ical.js:686:18)
at Object.parseICS (/opt/magic_mirror/node_modules/node-ical/ical.js:722:18)
at sync.parseICS (/opt/magic_mirror/node_modules/node-ical/node-ical.js:198:15)
at autodetect.parseICS (/opt/magic_mirror/node_modules/node-ical/node-ical.js:229:17)
at /opt/magic_mirror/modules/default/calendar/calendarfetcher.js:72:18
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I'm to far away from the calendar stuff to solve this at the moment, may @sdetweil can take a look? Thanks.

Other solution could be a downgrade to node-ical v0.14.1 which is the latest version working.

@sdetweil
Copy link
Collaborator

sure, and I am pushing a pr to node-ical for the darned MS timezones again..

@sdetweil
Copy link
Collaborator

sdetweil commented Sep 21, 2022

well, the REAL problem on the testcase failing is garbage in the testcase in the timezone section, which we don't use, nor ical

this

TZOFFSETTO:+0000
TZNAME:GMT
DTSTART:19700101T00000--äüüßßß-0   <----- garbage
END:STANDARD
END:VTIMEZONE

should be changed to this

TZOFFSETTO:+0000
TZNAME:GMT
DTSTART:19700101T000000
END:STANDARD
END:VTIMEZONE

tested with node-ical v0.15.1

@khassel
Copy link
Collaborator Author

khassel commented Sep 21, 2022

Thanks, the garbage was in the file since first commit ...

So I will fix this with the tests.

@khassel
Copy link
Collaborator Author

khassel commented Sep 21, 2022

Tests are fine now, closing this.

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