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

Customize behavior of multi-day events #464

ot-dtd opened this issue Apr 11, 2019 · 2 comments


None yet
2 participants
Copy link

commented Apr 11, 2019

In the Event Calendar with labels enabled and when an event crosses midnight, it stretches the label across both days. It would be useful to set an option that determines whether the event shows on the first day only, the label gets split in two, or the current behavior occurs.

There is a partial work around for the first case, which is to set the end time of the event to midnight if it crosses, but this changes the duration of the event which shows up in the event bubble.

As well, it appears that events crossing midnight are also marked as All Day events, even if that is explicitly set in the event to be false.

An example use case for this change is an overnight shift beginning at 10pm on the 1st and ending at 2am on the 2nd. I wouldn't expect to see this event stretch over both days, and I wouldn't expect it to be labeled an All Day event. I'd like to see the start time of 10PM and the duration of 4 hours. Applying the workaround above would show 2 hours duration.


This comment has been minimized.

Copy link

commented Apr 26, 2019

In 4.6.3 we fixed the issue with multi day events always marked as all-day,
Regarding the rest: events crossing midnight will still span over the next day.
Now that the event is passed to the formatDuration function, the solution would be to leave the end time on the same day, and pass the cross midnight time in a custom property of the event object.
You can pass a custom formatDuration function which can use the custom poperty from the event object to calculate the duration.


This comment has been minimized.

Copy link

commented Apr 26, 2019

Excellent. Thank you!

@ot-dtd ot-dtd closed this Apr 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.