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

add fix for sliceMultiDayEvents #3543

Merged
merged 2 commits into from
Sep 17, 2024
Merged

Conversation

sdetweil
Copy link
Collaborator

sliceMultiDayEvents occasionally gets the number of events wrong and produces too many rows

Math.ceil() rounds up over 1.04 so we get an abnormal count

then the calcs for the midnight loop control used different moment() functions, producing different results

fixes #3542

@sdetweil
Copy link
Collaborator Author

what is this failure? test exceeded 30 minutes

@khassel
Copy link
Collaborator

khassel commented Sep 16, 2024

what is this failure? test exceeded 30 minutes

looks like github had problems, I restarted the jobs ...

@khassel khassel requested a review from rejas September 16, 2024 22:16
@rejas rejas merged commit ea3a323 into MagicMirrorOrg:develop Sep 17, 2024
6 checks passed
MarcLandis added a commit to MarcLandis/MagicMirror that referenced this pull request Sep 24, 2024
This bug is caused by MagicMirrorOrg#3543.

The calculation for midnight adds a day but for endDate we want the day to be subtracted again.
MarcLandis added a commit to MarcLandis/MagicMirror that referenced this pull request Sep 24, 2024
This bug is caused by MagicMirrorOrg#3543.

The calculation for midnight adds a day but for endDate we want the day to be subtracted again.
MarcLandis added a commit to MarcLandis/MagicMirror that referenced this pull request Sep 25, 2024
This bug is caused by MagicMirrorOrg#3543.

The calculation for midnight adds a day but for endDate we want the day to be subtracted again.
khassel pushed a commit that referenced this pull request Sep 25, 2024
This bug is caused by #3543.

The calculation for midnight adds a day but for endDate we want the day
to be subtracted again.
@sdetweil sdetweil deleted the fix_date_slice branch October 5, 2024 16:33
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.

3 participants