Read the statement by Michael Teeuw here.
TypeError: curr.start.toISOString is not a function
-
so now I found something new:
in my Calendar the DTSTART is set to:
DTSTART;TZID="(UTC+00:00) Monrovia, Reykjavik":20161028T200000
when I remove (UTC+00:00) everything works fine.
Then it looks like this:
DTSTART;TZID="Monrovia, Reykjavik":20161028T200000
I’ve used a PHP Script to do this.
@MichMich can you implement this in the js script? or what will I need to replace for testing?$ch = curl_init(); // set url curl_setopt($ch, CURLOPT_URL, "https://ical.url/calendar.ics"); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_COOKIEJAR, "blabla"); // $output contains the output string $output = curl_exec($ch); // close curl resource to free up system resources curl_close($ch); $response = new Response(); $output = str_replace('(UTC+00:00) ', '', $output); $response->setContent($output); $response->setStatusCode(Response::HTTP_OK); $response->headers->set('Content-type', 'text/calendar'); return $response;
-
I suggest you fork the project, implement the fix that works for you and send me a PR. That way you can test it and others can benefit from your solution. :)
-
Ok, :-) but actually I don’t no where to implement this in js :-)
Can someone give me a hint where to place my
str_replace
(UTC+00:00) in DTSTART variable?Thanks ;-)
-
So I ran into this problem and have a fix. I have uploaded the files to drop box for know. If this fixes others, i’ll look into updating the project.
There are 2 files that need updated:
/home/pi/MagicMirror/modules/default/calendar/vendor/node-ical.js
line 33
https://dl.dropboxusercontent.com/u/1184191/node-ical.js/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js
line 97
https://dl.dropboxusercontent.com/u/1184191/ical.js -
can you maybe post your solution? that would be great
thanks bangee
-
Apologies…my dropbox links dropped out.
Here are the updated files:
https://www.dropbox.com/sh/xvlusz1po4tvq24/AABF9ZuCL5j-ok4xfnYA5JsHa?dl=0This has not been tested with the latest version. I bought 6 different types of mirrors (glass and acrylic) and couldn’t find what i was looking for so gave up the dream for now…
-
Does this work? Confirmed? I tried someone elses .js and it didnt :-(
-
it does not :-(