Read the statement by Michael Teeuw here.
calendar - wrong repeating count when using sliceMultiDayEvents
-
@sdetweil Thank you - even it doesn’t make it into the next release I have a way to manually fix it now.
-
-
@MarcLandis the fix was accepted and merged
-
@MarcLandis you could test it now by
https://forum.magicmirror.builders/topic/14327/testing-new-fixes-or-solving-currentremember to do (to get release level dependencies)
npm run install-mm
assuming the config in this MM is set correctly for sliceMultiDayEvents
-
@sdetweil I was on a business trip the last days.
I noticed that multi fullday events will be shown one day in the past:
This is from today (20. Sep)
I don’t have the config to show past days enables.
-
@MarcLandis hm, same calendar entries ?
is this on the edited calendar.js or the develop branch?
im on a trip til tuesday
-
@sdetweil I am going to debug this. The ics was slightly modified, when I noticed the bug.
-
@sdetweil I found the reason and created a pull request
-
@MarcLandis I pushed a new branch
here is an UPDATED test version of the fixes for all kinds of calendar date problems.
NOTE: the changed branch name
NOTE: this used the node-cal@0.19.0 library UNCHANGEDbest to make a new folder and git clone there
git clone https://github.com/sdetweil/MagicMirror
cd MagicMirror
git checkout fixcaldates2 // <------ note this is a changed branch name
npm run install-mm
copy your config.js and custom.css from the prior folder
and the non-default modules you have installed…this ONLY changes the default calendar
but DOES ship an updated node-ical library tooif you need to fall back, just rename the folders around again so that
your original is called MagicMirrorall the testcases for node-ical and MagicMirror execute successfully.
the ‘BIG’ change here is to get the local NON-TZ dates for the
rrule.between()all the checking and conversion code is commented out or not used
the node-ical fixes are for excluded dates (exdate) values being adjusted for DST/STD time… waiting to submit that PRone fix in calendar.js for checking if a past date was too far back,
but it never checked to see IF the event date was in the past… (before today) so it chopped off too manyand one change in calendarfetcher.js to put out a better diagnostic message of the parsed data… (exdate was excluded cause JSON stringify couldn’t convert the complex structure)
I added the tests you all have documented
please re-pull and checkout the new branch (I deleted the old branch)
and npm run install-mm again