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

Fixcal #2905

Merged
merged 4 commits into from
Sep 6, 2022
Merged

Fixcal #2905

merged 4 commits into from
Sep 6, 2022

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