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

Recurring (google calendar) events shown 1 day earlier #63

Open
tcsabina opened this issue May 2, 2023 · 8 comments · Fixed by dberntsson/MMM-CalendarWeek#2
Open

Recurring (google calendar) events shown 1 day earlier #63

tcsabina opened this issue May 2, 2023 · 8 comments · Fixed by dberntsson/MMM-CalendarWeek#2

Comments

@tcsabina
Copy link

tcsabina commented May 2, 2023

Recurring (google calendar) events shown 1 day earlier.

@jerome-pouiller
Copy link

Same problem here

@jerome-pouiller
Copy link

It can be solved by updating vendor/ical.js

@jerome-pouiller
Copy link

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

jerome-pouiller added a commit to jerome-pouiller/MMM-CalendarWeek that referenced this issue Nov 6, 2023
The built-in version of ical.js has several bugs.

Fix heskja#63
jerome-pouiller added a commit to jerome-pouiller/MMM-CalendarWeek that referenced this issue Nov 6, 2023
The built-in version of ical.js has several bugs.

Fix heskja#63
jerome-pouiller added a commit to jerome-pouiller/MMM-CalendarWeek that referenced this issue Nov 6, 2023
This version of ical.js has been bundled with magic mirror v2.9.0. It
seems to fix retrieving of recurring events described in[1]

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.

[1]: heskja#63
jerome-pouiller added a commit to jerome-pouiller/MMM-CalendarWeek that referenced this issue Nov 6, 2023
This version of ical.js has been bundled with magic mirror v2.9.0. It
seems to fix retrieving of recurring events described in[1]

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.

[1]: heskja#63
@tcsabina
Copy link
Author

tcsabina commented Nov 15, 2023

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?

@jerome-pouiller
Copy link

@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.

@tcsabina
Copy link
Author

@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...

dberntsson pushed a commit to dberntsson/MMM-CalendarWeek that referenced this issue Nov 20, 2023
This version of ical.js has been bundled with magic mirror v2.9.0. It
seems to fix retrieving of recurring events described in[1]

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.

[1]: heskja#63
@dberntsson
Copy link

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!

@jerome-pouiller
Copy link

@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.

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

Successfully merging a pull request may close this issue.

3 participants