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

Make the calendar show the whole multi day event with how far it has progressed #2895

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

buxxi
Copy link
Contributor

@buxxi buxxi commented Aug 2, 2022

Made an attempt to debug issue #2685 and couldn't really find a reason to why multi day events had their start date changed to the current date. So I tried to remove it and made comparisons with and without it, using sliceMultiDayEvents=true/false.

sliceMultiDayEvents=false sliceMultiDayEvents=true
startDate=today Vacation - Today Vacation (1/13) - Today
Don't modify startDate Vacation - Ends in 12 days Vacation (25/37) - Today

It feels like it's wrong with sliceMultiDayEvents=true without this pull request, but since it changes the other one from "Today" to "Ends in 12 days" there might be something more that is needed to be changed? Both looks fine for me at least.

@MichMich
Copy link
Collaborator

MichMich commented Aug 5, 2022

I think it's a good idea to find out why the code was there in the first place. @rejas Do you have any idea? The blame points to you. :)

@rejas
Copy link
Collaborator

rejas commented Aug 6, 2022

Well, i didnt write the code, I merely moved it from the fetcher class into this new file... @oemel09 wrote the original code back in 2019 (6a5f022) and @kolbyjack added a fix in 2022...

@oemel09
Copy link
Contributor

oemel09 commented Aug 6, 2022

As stated in my PR where I added this code back then your example would have been displayed as Vacataion - 25 days ago. If that is no longer the case and it is instead being displayed as Vacation - Ends in 12 days, like you describe, feel free to remove my changes and do not modify the events start date 👍

@MichMich
Copy link
Collaborator

MichMich commented Aug 6, 2022

Awesome! Thanks for your feedback @oemel09

Much appreciated!

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