MMM-CalendarWeek
MMM-CalendarWeek copied to clipboard
Recurring (google calendar) events shown 1 day earlier
Recurring (google calendar) events shown 1 day earlier.
Same problem here
It can be solved by updating vendor/ical.js
Change this line:
diff --git i/calendarfetcher.js w/calendarfetcher.js
index 87fbcab..03b5aa9 100644
--- i/calendarfetcher.js
+++ w/calendarfetcher.js
@@ -5,7 +5,7 @@
* MIT Licensed.
*/
-var ical = require("./vendor/ical.js");
+var ical = require("ical.js");
var moment = require("moment");
var CalendarFetcher = function(url, reloadInterval, excludedEvents, maximumEntries, maximumNumberOfDays, auth, includePastEvents) {
Then, remove vendor/ical.js
and npm install ical.js
Hi @jerome-pouiller.
This doesn't seem to solve the issue on my MM. I've tried your description here, didn't work. I even used your repo (as the PR is not yet merged), but the issue is still present
Update: In your description here you say to remove vendor/ical.js. But your repo still contains this file. Why?
@tcsabina Indeed, I made a mistake during my tests:
I tried use external ical.js package. However, ical 0.5 still has somme issues and ical 0.8 is incompatible with current MMM-CalendarWeek implementation.
So, I have have updated vendor/ical.js
with the version bundled with magic mirror v2.9.0
. This is the patch I have applied on my branch and it is sufficient for me.
@jerome-pouiller, So I took a look on this again, as you said that it is working for your.
So actually your PR is not on this repo, but on https://github.com/dberntsson/MMM-CalendarWeek. And I cloned that repo, while the PR was not merged...
So I've used your repo, with your actual change, and it works, kind of.... So the events moved to the correct day (not 1 day earlier), but they are 1 hour too early. Any ideas what is going on? I am in GMT+1, if that matters...
So actually your PR is not on this repo, but on https://github.com/dberntsson/MMM-CalendarWeek. And I cloned that repo, while the PR was not merged...
Now merged!
@tcsabina FYI, I also observe your issue (it tooks me a few days to realize the problem). For now, I haven't had time to go deeper.