Skip to content

Fixcal#2905

Merged
MichMich merged 4 commits intoMagicMirrorOrg:developfrom
sdetweil:fixcal
Sep 6, 2022
Merged

Fixcal#2905
MichMich merged 4 commits intoMagicMirrorOrg:developfrom
sdetweil:fixcal

Conversation

@sdetweil
Copy link
Collaborator

@sdetweil sdetweil commented Sep 5, 2022

rrule and luxon miscalculate event day when byday is specified, but NOT without.

correct adjustment in calendarutils.js to adjust only when byday is specified

fixes: #2885

date = new Date(date.getTime() + Math.abs(24 * 60) * 60000);
// if the rrule byweekday WAS explicitly set , correct it
if (curEvent.rrule.origOptions.byweekday !== undefined) {
if (curEvent.rrule.origOptions.byweekday !== undefined) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a duplicate line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, sent update

@codecov-commenter
Copy link

Codecov Report

Merging #2905 (11d17dd) into develop (ca906c4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #2905   +/-   ##
========================================
  Coverage    63.82%   63.82%           
========================================
  Files            9        9           
  Lines          293      293           
========================================
  Hits           187      187           
  Misses         106      106           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@MichMich MichMich merged commit 9dd3430 into MagicMirrorOrg:develop Sep 6, 2022
@sdetweil sdetweil deleted the fixcal branch October 6, 2022 20:43
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 this pull request may close these issues.

4 participants