Read the statement by Michael Teeuw here.
Posts
-
RE: Calendar events showing on wrong day.
-
RE: Calendar events showing on wrong day.
@sdetweil Genius!, that did it, do I still need to leave the other 4 lines commented out?
-
RE: Calendar events showing on wrong day.
@sdetweil
This is the new (re-created) entryBEGIN:VEVENT DTSTART:20211123T100000Z DTEND:20211123T150000Z DTSTAMP:20211119T165604Z UID:0g4190e8en06vs************@google.com CREATED:20211119T151237Z DESCRIPTION: LAST-MODIFIED:20211119T151237Z LOCATION: SEQUENCE:0 STATUS:CONFIRMED SUMMARY:YARD WASTE TRANSP:OPAQUE END:VEVENTThis is the old (yearly) entry
BEGIN:VEVENT DTSTART;TZID=America/New_York:20210406T050000 DTEND;TZID=America/New_York:20210406T100000 RRULE:FREQ=WEEKLY;WKST=SU;UNTIL=20211230T045959Z;BYDAY=TU EXDATE;TZID=America/New_York:20211123T050000 DTSTAMP:20211119T165604Z UID:0v89h5cit8nq6m************@google.com CREATED:20211026T075843Z DESCRIPTION: LAST-MODIFIED:20211026T080254Z LOCATION: SEQUENCE:1 STATUS:CONFIRMED SUMMARY:YARD WASTE TRANSP:OPAQUE END:VEVENT -
RE: Calendar events showing on wrong day.
@sdetweil I believe it’s form the one i posted earlier, top of this page.
DTSTART;TZID=America/New_York:20210406T050000 DTEND;TZID=America/New_York:20210406T100000 RRULE:FREQ=WEEKLY;WKST=SU;UNTIL=20211230T045959Z;BYDAY=TU -
RE: Calendar events showing on wrong day.
@sdetweil said in Calendar events showing on wrong day.:
11/23 is tuesday, 11/30 is tuesday, 12/7 is tuesday
Those dates are correct, the 11/23 entry was deleted and re-added, so it’s not part of the yearly schedule anymore.
For me the entry for 11/30 displays on the monitor as Dec 1st.
-
RE: Calendar events showing on wrong day.
@sdetweil I understand that it works, and it is indeed working, but why is it showing a day later is what I am trying to figure out, what about the entries for 11/23-12/6?
-
RE: Calendar events showing on wrong day.
Event: {"type":"VEVENT","params":[],"start":"2022-01-26T10:00:00.000Z","datetype":"date-time","end":"2022-01-26T15:00:00.000Z","dtstamp":"2021-11-19T16:07:10.000Z","uid":"0idffl8ue0gac*************@google.com","created":"2021-11-19T13:18:54.000Z","description":"Recycling Bottles, Cans, and Plastic.","lastmodified":"2021-11-19T13:18:54.000Z","location":"","sequence":"0","status":"CONFIRMED","summary":"RECYCLING (BOTTLES, CANS and PLASTIC) ","transparency":"TRANSPARENT"} [19.11.2021 11:07.22.130] [DEBUG] startDate (local): Wed Jan 26 2022 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 11:07.22.135] [DEBUG] endDate (local): Wed Jan 26 2022 10:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 11:07.22.141] [DEBUG] duration: 18000000 [19.11.2021 11:07.22.146] [DEBUG] title: RECYCLING (BOTTLES, CANS and PLASTIC) [19.11.2021 11:07.22.160] [DEBUG] initial tz=Etc/UTC [19.11.2021 11:07.22.169] [DEBUG] corrected tz=Etc/UTC [19.11.2021 11:07.22.174] [DEBUG] start date/time=Wed Jan 26 2022 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 11:07.22.178] [DEBUG] start offset=0 [19.11.2021 11:07.22.182] [DEBUG] start date/time w tz =Wed Jan 26 2022 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 11:07.22.189] [DEBUG] event date=Wed Jan 26 2022 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 11:07.22.195] [DEBUG] event offset=0 hour=10 event date=Wed Jan 26 2022 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 11:07.22.202] [DEBUG] adjustHours=0 [19.11.2021 11:07.22.209] [DEBUG] Processing entry... [19.11.2021 11:07.22.217] [DEBUG]This is the Calendar Event I believe we should be looking at
BEGIN:VEVENT DTSTART;TZID=America/New_York:20210406T050000 DTEND;TZID=America/New_York:20210406T100000 RRULE:FREQ=WEEKLY;WKST=SU;UNTIL=20211230T045959Z;BYDAY=TU EXDATE;TZID=America/New_York:20211123T050000 DTSTAMP:20211119T165604Z UID:0v89h5cit8nq6m************@google.com CREATED:20211026T075843Z DESCRIPTION: LAST-MODIFIED:20211026T080254Z LOCATION: SEQUENCE:1 STATUS:CONFIRMED SUMMARY:YARD WASTE TRANSP:OPAQUE END:VEVENTThis last event listed as “UNTIL=20211230T045959Z”, displays as Dec 1st.
-
RE: Calendar events showing on wrong day.
@sdetweil said in Calendar events showing on wrong day.:
but there is no time zone set in the appointment
It shows as set in the calendar itself?

-
RE: Calendar events showing on wrong day.
Event: {"type":"VEVENT","params":[],"start":"2021-11-23T10:00:00.000Z","datetype":"date-time","end":"2021-11-23T15:00:00.000Z","dtstamp":"2021-11-19T15:25:46.000Z","uid":"0g4190e8en06vs************@google.com","created":"2021-11-19T15:12:37.000Z","description":"","lastmodified":"2021-11-19T15:12:37.000Z","location":"","sequence":"0","status":"CONFIRMED","summary":"YARD WASTE","transparency":"OPAQUE"} [19.11.2021 10:26.06.439] [DEBUG] startDate (local): Tue Nov 23 2021 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 10:26.06.440] [DEBUG] endDate (local): Tue Nov 23 2021 10:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 10:26.06.442] [DEBUG] duration: 18000000 [19.11.2021 10:26.06.443] [DEBUG] title: YARD WASTE [19.11.2021 10:26.06.465] [DEBUG] initial tz=Etc/UTC [19.11.2021 10:26.06.474] [DEBUG] corrected tz=Etc/UTC [19.11.2021 10:26.06.478] [DEBUG] start date/time=Tue Nov 23 2021 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 10:26.06.492] [DEBUG] start offset=0 [19.11.2021 10:26.06.495] [DEBUG] start date/time w tz =Tue Nov 23 2021 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 10:26.06.498] [DEBUG] event date=Tue Nov 23 2021 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 10:26.06.500] [DEBUG] event offset=0 hour=10 event date=Tue Nov 23 2021 05:00:00 GMT-0500 (Eastern Standard Time) [19.11.2021 10:26.06.514] [DEBUG] adjustHours=0 [19.11.2021 10:26.06.523] [DEBUG] Processing entry... [19.11.2021 10:26.06.527] [DEBUG][19.11.2021 10:26.08.304] [DEBUG] Title: YARD WASTE, with dates: ["2021-11-23T09:00:00.000Z","2021-11-30T09:00:00.000Z","2021-12-07T09:00:00.000Z","2021-12-14T09:00:00.000Z","2021-12-21T09:00:00.000Z","2021-12-28T09:00:00.000Z"]The one in question at the moment is ““2021-11-30T09:00:00.000Z”” which display’s as 2021-12-01
-
RE: Calendar events showing on wrong day.
@sdetweil Got it, I didn’t realize the file continued on, it’s 2,486kb, which part do you need?
-
RE: Calendar events showing on wrong day.
@sdetweil said in Calendar events showing on wrong day.:
so, I need to see THAT vevent
BEGIN:VEVENT DTSTART:20211123T100000Z DTEND:20211123T150000Z DTSTAMP:20211119T151956Z UID:0g4190e8en06vs************@google.com CREATED:20211119T151237Z DESCRIPTION: LAST-MODIFIED:20211119T151237Z LOCATION: SEQUENCE:0 STATUS:CONFIRMED SUMMARY:YARD WASTE TRANSP:OPAQUE END:VEVENT@sdetweil said in Calendar events showing on wrong day.:
you should have a stream of stuff so fast u can’t read
There’s no output in the ssh window except for the following.
pi@magicmirror:~/MagicMirror $ npm start >cal_test_debug_log.txt [19.11.2021 10:25.12.563] [WARN] (electron) Security Warning: A WebContents was just created with both webviewTag and contextIsolation enabled. This combination is fundamentally less secure and effectively bypasses the protections of contextIsolation. We strongly recommend you move away from webviews to OOPIF or BrowserView in order for your app to be more secure [19.11.2021 10:25.13.777] [ERROR] ERROR! Could not find main module js file for MMM-GABackground -
RE: Calendar events showing on wrong day.
@sdetweil So I deleted the entry for that day and added back just for that day, it shows up correct in the display but the following events still shows a day late.
-
RE: Calendar events showing on wrong day.
@sdetweil said in Calendar events showing on wrong day.:
unless u didn’t stop pm2 running instance
I did, “pm2 stop all”, then “npm start file_name.txt”
@sdetweil said in Calendar events showing on wrong day.:
u did add the “DEBUG”, right
Yes.
```
language: “en”,
locale: “en-US”,
logLevel: [“INFO”, “LOG”, “WARN”,“ERROR”,“DEBUG”], // Add “DEBUG” for even more logging
timeFormat: 24,
units: “imperial”, -
RE: Calendar events showing on wrong day.
Event: {"type":"VEVENT","params":[],"start":"2021-04-06T09:00:00.000Z","datetype":"date-time","end":"2021-04-06T14:00:00.000Z","dtstamp":"2021-11-19T14:43:09.000Z","uid":"0v89h5cit8nq6m************@google.com","created":"2021-10-26T07:58:43.000Z","description":"","lastmodified":"2021-10-26T08:02:54.000Z","location":"","sequence":"1","status":"CONFIRMED","summary":"YARD WASTE","transparency":"OPAQUE","recurrences":{"2021-11-02":{"type":"VEVENT","params":[],"start":"2021-11-03T09:00:00.000Z","datetype":"date-time","end":"2021-11-03T14:00:00.000Z","dtstamp":"2021-11-19T14:43:09.000Z","uid":"0v89h5cit8nq6m************@google.com","recurrenceid":"2021-11-02T09:00:00.000Z","created":"2021-10-26T07:58:43.000Z","description":"","lastmodified":"2021-10-26T08:02:54.000Z","location":"","sequence":"2","status":"CONFIRMED","summary":"YARD WASTE","transparency":"OPAQUE"},"2021-10-12":{"type":"VEVENT","params":[],"start":"2021-10-13T09:00:00.000Z","datetype":"date-time","end":"2021-10-13T14:00:00.000Z","dtstamp":"2021-11-19T14:43:09.000Z","uid":"0v89h5cit8nq6m************@google.com","recurrenceid":"2021-10-12T09:00:00.000Z","created":"2021-10-26T07:58:43.000Z","description":"","lastmodified":"2021-10-26T08:02:54.000Z","location":"","sequence":"2","status":"CONFIRMED","summary":"YARD WASTE","transparency":"OPAQUE"},"2021-09-07":{"type":"VEVENT","params":[],"start":"2021-09-08T09:00:00.000Z","datetype":"date-time","end":"2021-09-08T14:00:00.000Z","dtstamp":"2021-11-19T14:43:09.000Z","uid":"0v89h5cit8nq6m************@google.com","recurrenceid":"2021-09-07T09:00:00.000Z","created":"2021-10-26T07:58:43.000Z","description":"","lastmodified":"2021-10-26T08:02:54.000Z","location":"","sequence":"2","status":"CONFIRMED","summary":"YARD WASTE","transparency":"OPAQUE"},"2021-07-06":{"type":"VEVENT","params":[],"start":"2021-07-07T09:00:00.000Z","datetype":"date-time","end":"2021-07-07T14:00:00.000Z","dtstamp":"2021-11-19T14:43:09.000Z","uid":"0v89h5cit8nq6m************@google.com","recurrenceid":"2021-07-06T09:00:00.000Z","created":"2021-10-26T07:58:43.000Z","description":"","lastmodified":"2021-10-26T08:02:54.000Z","location":"","sequence":"2","status":"CONFIRMED","summary":"YARD WASTE","transparency":"OPAQUE"},"2021-06-01":{"type":"VEVENT","params":[],"start":"2021-06-02T09:00:00.000Z","datetype":"date-time","end":"2021-06-02T14:00:00.000Z","dtstamp":"2021-11-19T14:43:09.000Z","uid":"0v89h5cit8nq6m************@google.com","recurrenceid":"2021-06-01T09:00:00.000Z","created":"2021-10-26T07:58:43.000Z","description":"","lastmodified":"2021-10-26T08:02:54.000Z","location":"","sequence":"2","status":"CONFIRMED","summary":"YARD WASTE","transparency":"OPAQUE"}},"rrule":{"_cache":{"all":false,"before":[],"after":[],"between":[]},"origOptions":{"dtstart":"2021-04-06T09:00:00.000Z","freq":2,"wkst":{"weekday":6},"until":"2021-12-30T04:59:59.000Z","byweekday":[{"weekday":1}]},"options":{"freq":2,"dtstart":"2021-04-06T09:00:00.000Z","interval":1,"wkst":6,"count":null,"until":"2021-12-30T04:59:59.000Z","bysetpos":null,"bymonth":null,"bymonthday":[],"bynmonthday":[],"byyearday":null,"byweekno":null,"byweekday":[1],"bynweekday":null,"byhour":[9],"byminute":[0],"bysecond":[0],"byeaster":null}}} -
RE: Calendar events showing on wrong day.
@sdetweil That’s everything in the file, I did tail the file, but the out is alot.
-
RE: Calendar events showing on wrong day.
@sdetweil Here’s the out in the file.
> magicmirror@2.17.1 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [19.11.2021 09:42.53.017] [LOG] Starting MagicMirror: v2.17.1 [19.11.2021 09:42.53.028] [LOG] Loading config ... [19.11.2021 09:42.53.041] [LOG] Loading module helpers ... [19.11.2021 09:42.53.456] [LOG] Initializing new module helper ... [19.11.2021 09:42.53.458] [LOG] Module helper loaded: MMM-Remote-Control [19.11.2021 09:42.53.461] [LOG] No helper found for module: alert. [19.11.2021 09:42.53.469] [LOG] Initializing new module helper ... [19.11.2021 09:42.53.471] [LOG] Module helper loaded: updatenotification [19.11.2021 09:42.53.472] [LOG] No helper found for module: clock. [19.11.2021 09:42.53.782] [LOG] Initializing new module helper ... [19.11.2021 09:42.53.784] [LOG] Module helper loaded: calendar [19.11.2021 09:42.55.195] [LOG] Initializing new module helper ... [19.11.2021 09:42.55.196] [LOG] Module helper loaded: MMM-TelegramBot [19.11.2021 09:42.55.203] [LOG] Initializing new module helper ... [19.11.2021 09:42.55.204] [LOG] Module helper loaded: MMM-Detector [19.11.2021 09:42.55.987] [LOG] Initializing new module helper ... [19.11.2021 09:42.55.997] [LOG] Module helper loaded: MMM-GoogleAssistant [19.11.2021 09:42.55.999] [LOG] No helper found for module: MMM-JokeAPI. [19.11.2021 09:42.56.001] [LOG] No helper found for module: weather. [19.11.2021 09:42.56.181] [LOG] Initializing new module helper ... [19.11.2021 09:42.56.183] [LOG] Module helper loaded: MMM-Tools [19.11.2021 09:42.56.900] [LOG] Initializing new module helper ... [19.11.2021 09:42.56.902] [LOG] Module helper loaded: MMM-MotionDisplay [19.11.2021 09:42.56.955] [LOG] Initializing new module helper ... [19.11.2021 09:42.56.957] [LOG] Module helper loaded: newsfeed [19.11.2021 09:42.56.958] [LOG] All module helpers loaded. [19.11.2021 09:42.57.123] [LOG] Starting server on port 8080 ... [19.11.2021 09:42.57.139] [LOG] Server started ... [19.11.2021 09:42.57.142] [LOG] Connecting socket for: MMM-Remote-Control [19.11.2021 09:42.57.144] [LOG] Starting node helper for: MMM-Remote-Control [19.11.2021 09:42.57.157] [LOG] Connecting socket for: updatenotification [19.11.2021 09:42.57.159] [LOG] Connecting socket for: calendar [19.11.2021 09:42.57.161] [LOG] Starting node helper for: calendar [19.11.2021 09:42.57.163] [LOG] Connecting socket for: MMM-TelegramBot -
RE: Calendar events showing on wrong day.
@sdetweil It’s running, how long should I wait before checking the output file?, as there is no output in the ssh window.
-
RE: Calendar events showing on wrong day.
@sdetweil said in Calendar events showing on wrong day.:
and run again, then u will see the calendar processing
Will it work like this “npm start >cal_test_log.txt | grep calendar”?
-
RE: Calendar events showing on wrong day.
@sdetweil Yes.
Line 348 & 358
// if (event.start.tz === moment.tz.guess()) { // if the date hour is less than the offset if (24 - dh < Math.abs(dateoffset / 60)) { // apply the correction to the date/time back to right day date = new Date(date.getTime() + Math.abs(24 * 60) * 60000); // the duration was calculated way back at the top before we could correct the start time.. // fix it for this event entry //duration = 24 * 60 * 60 * 1000; Log.debug("new recurring date2 is " + date); } // }Line 376 & 386
// if (event.start.tz === moment.tz.guess()) { // if the date hour is less than the offset if (24 - dh < Math.abs(dateoffset / 60)) { // apply the correction to the date/time back to right day date = new Date(date.getTime() + Math.abs(24 * 60) * 60000); // the duration was calculated way back at the top before we could correct the start time.. // fix it for this event entry //duration = 24 * 60 * 60 * 1000; Log.debug("new recurring date2 is " + date); } // }

