<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Recurring calendar events are off by a day]]></title><description><![CDATA[<p dir="auto">I’ve seen a number of discussions about this topic and have tried the fixes that I’ve been able to find, but I’m still running into cases where weekly recurring events on my ical are showing up a day late.</p>
<p dir="auto">I believe I have set my system timezone, locale, and keyboard correctly.</p>
<p dir="auto">I have upgraded to the lates version of MagicMirror v2.20.0</p>
<p dir="auto">My timezone is PST</p>
<p dir="auto">Here is the VEVENT data associate with a dummy event that has this problem. When I entered this item into my calendar, I set it to happen on Thursday from 7:00PM to 7:15PM. Then I set it to be recurring. However on the MagicMirror, it shows up at 7:00 PM on Friday</p>
<pre><code>BEGIN:VEVENT
CREATED:20220810T060530Z
UID:029DDE3C-6248-442D-A1A1-51AB6421F5D2
RRULE:FREQ=WEEKLY;INTERVAL=1
DTEND;TZID=America/Los_Angeles:20220811T191500
SUMMARY:This is a test Event
LAST-MODIFIED:20220810T060608Z
DTSTAMP:20220810T060608Z
DTSTART;TZID=America/Los_Angeles:20220811T190000
SEQUENCE:1
END:VEVENT
</code></pre>
<p dir="auto">also, here is the config properties I have for the module</p>
<pre><code>    fade: false,
    maxTitleLength: 50,
    wrapEvents: true,
    maximumEntries: 15,
    timeFormat: "absolute",
    colored: true,
    dateFormat: "hh:mma ddd MMM Do",
    fullDayEventDateFormat: "ddd MMM Do",
    getRelative: 0,
    urgency: 0
</code></pre>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I’m sure you’re sick of responding to these types of questions, but any ideas? You seem to be pretty involved in some of the other discussions I’ve seen on this issue.</p>
]]></description><link>https://forum.magicmirror.builders/topic/17087/recurring-calendar-events-are-off-by-a-day</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 00:24:31 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17087.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Aug 2022 06:17:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Recurring calendar events are off by a day on Mon, 05 Sep 2022 19:56:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justinreimer" aria-label="Profile: justinreimer">@<bdi>justinreimer</bdi></a> I have submitted fix <a href="https://github.com/MichMich/MagicMirror/pull/2905" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/pull/2905</a><br />
for the next release</p>
]]></description><link>https://forum.magicmirror.builders/post/104213</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/104213</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 05 Sep 2022 19:56:30 GMT</pubDate></item><item><title><![CDATA[Reply to Recurring calendar events are off by a day on Thu, 11 Aug 2022 19:58:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Yep that seems to have fixed it. Checked the next 30 events on my calendar, and they all seem to match up now. Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/103508</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/103508</guid><dc:creator><![CDATA[justinreimer]]></dc:creator><pubDate>Thu, 11 Aug 2022 19:58:27 GMT</pubDate></item><item><title><![CDATA[Reply to Recurring calendar events are off by a day on Thu, 11 Aug 2022 19:44:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justinreimer" aria-label="Profile: justinreimer">@<bdi>justinreimer</bdi></a> the problem is the library that handles the recurring events</p>
<p dir="auto">sometimes it gets its date/times messed up , the new event<br />
if got 2 events per week, BUT used the correct DATE and the UTC TIME, and THAT turns into the day before in LA timezone.  which is what the code we commented out fixes…</p>
<pre><code>[11.08.2022 12:12.47.262] [DEBUG] start: Mon Aug 08 2022 19:00:00 GMT-0700 (Pacific Daylight Time)
[11.08.2022 12:12.47.263] [DEBUG] end:: Mon Aug 08 2022 21:00:00 GMT-0700 (Pacific Daylight Time)
[11.08.2022 12:12.47.264] [DEBUG] duration: 7200000
[11.08.2022 12:12.47.264] [DEBUG] title: My Custom Event
[11.08.2022 12:12.47.265] [DEBUG] Search for recurring events between: Thu Aug 11 2022 12:12:47 GMT-0700 (Pacific Daylight Time) and Thu Aug 10 2023 23:59:59 GMT-0700 (Pacific Daylight Time)
[11.08.2022 12:12.47.300] [DEBUG] Title: My Custom Event, with dates: ["2022-08-15T02:00:00.000Z","2022-08-17T02:00:00.000Z",
</code></pre>
<p dir="auto">except the 1st event</p>
<pre><code>[11.08.2022 12:12.46.698] [DEBUG] start: Thu Aug 11 2022 19:00:00 GMT-0700 (Pacific Daylight Time)
[11.08.2022 12:12.46.698] [DEBUG] end:: Thu Aug 11 2022 19:15:00 GMT-0700 (Pacific Daylight Time)
[11.08.2022 12:12.46.699] [DEBUG] duration: 900000
[11.08.2022 12:12.46.699] [DEBUG] title: This is a test Event
[11.08.2022 12:12.46.700] [DEBUG] Search for recurring events between: Thu Aug 11 2022 12:12:46 GMT-0700 (Pacific Daylight Time) and Thu Aug 10 2023 23:59:59 GMT-0700 (Pacific Daylight Time)
[11.08.2022 12:12.46.782] [DEBUG] Title: This is a test Event, with dates: ["2022-08-12T02:00:00.000Z","2022-08-19T02:00:00.000Z",
</code></pre>
<p dir="auto">is processed correctly…</p>
<p dir="auto">unfortunately i cannot tell that one is ok, and the other is not.<br />
if u take off the BYDAY on the second event then its ok…</p>
<p dir="auto">------<br />
hm… try this …</p>
<p dir="auto">uncomment, and add this line above  each line you had commented out</p>
<pre><code>  if(curEvent.rrule.origOptions.byweekday !== undefined)
</code></pre>
<p dir="auto">this checks to see if the vevent rrule explicitly specified byday…  if so, it corrects…<br />
otherwise not</p>
<p dir="auto">seems to work for me</p>
]]></description><link>https://forum.magicmirror.builders/post/103507</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/103507</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 11 Aug 2022 19:44:50 GMT</pubDate></item><item><title><![CDATA[Reply to Recurring calendar events are off by a day on Thu, 11 Aug 2022 17:39:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justinreimer" aria-label="Profile: justinreimer">@<bdi>justinreimer</bdi></a> that’s what I was afraid of.</p>
<p dir="auto">put them back. let me look at it some more</p>
<p dir="auto">thanks for the other event</p>
]]></description><link>https://forum.magicmirror.builders/post/103501</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/103501</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 11 Aug 2022 17:39:28 GMT</pubDate></item><item><title><![CDATA[Reply to Recurring calendar events are off by a day on Thu, 11 Aug 2022 16:59:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">So the good news is that commenting out the above lines did fix the issue with the event I posted about above.</p>
<p dir="auto">The bad news is that it caused issues with other events that were previously working.</p>
<p dir="auto">Here’s the VEVENT data associated with one of the newly mis-behaving events</p>
<pre><code>BEGIN:VEVENT
CREATED:20220811T165129Z
UID:C8B93B02-3057-41F6-A69A-F4959C342E02
RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,WE
DTEND;TZID=America/Los_Angeles:20220808T210000
TRANSP:OPAQUE
X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC
SUMMARY:My Custom Event
LAST-MODIFIED:20220811T165146Z
DTSTAMP:20220811T165147Z
DTSTART;TZID=America/Los_Angeles:20220808T190000
SEQUENCE:1
END:VEVENT
</code></pre>
<p dir="auto">This new event that is now wrong is a weekly repeating event that is scheduled for every Monday and Wednesday at 7:00 PM. However, the calendar module on the Magic Mirror is now showing it happening every Sunday and Tuesday at 7:00 PM.</p>
]]></description><link>https://forum.magicmirror.builders/post/103499</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/103499</guid><dc:creator><![CDATA[justinreimer]]></dc:creator><pubDate>Thu, 11 Aug 2022 16:59:42 GMT</pubDate></item><item><title><![CDATA[Reply to Recurring calendar events are off by a day on Wed, 10 Aug 2022 14:02:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/justinreimer" aria-label="Profile: justinreimer">@<bdi>justinreimer</bdi></a> yeh, SO much fun… looks like a chnage to the lower level lib has ‘fixed’ the problem I had to work around 3 years ago…</p>
<p dir="auto">so to test</p>
<p dir="auto">edit ~/MagicMirror/modules/default/calendar/calendarutils.js<br />
and coment out (add // to the beginning of the line)</p>
<p dir="auto">lines 338 and 350<br />
both say  (one has a minus sign, one a plus sign before Math( )</p>
<pre><code>	date = new Date(date.getTime() - Math.abs(24 * 60) * 60000);
</code></pre>
<p dir="auto">and lines 366 and 378<br />
both say  (one has a minus sign, one a plus sign before Math( )</p>
<pre><code>        date = new Date(date.getTime() + Math.abs(24 * 60) * 60000);
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/103472</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/103472</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 10 Aug 2022 14:02:41 GMT</pubDate></item></channel></rss>