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

A multiday event that wraps to another row shows a time of 12a on the second row #5826

Open
JoshMoreno opened this issue Sep 15, 2020 · 2 comments

Comments

@JoshMoreno
Copy link

Reduced Test Case

https://codepen.io/jtree5757/pen/OJNwpZO

Bug Description

A multiday event that wraps to another row shows a time of 12a on the second row.

{
    title: 'Conference',
    start: '2020-09-18T13:00:00-07:00',
    end: '2020-09-21T15:00:00-08:00'
}

Screenshots

2020-09-15 at 10 17 AM

Workaround

eventContent: function(args) {
    if (!args.isStart) {
        return args.event.title
    }
},

Is this intentional?

Is there a better way of doing multiday events? I was thinking of going the recurring event route but wasn't sure since they're not technically recurring events. For example, a 5-day course is a single event spread over multiple days.

@acerix
Copy link
Member

acerix commented Sep 18, 2020

I don't believe it's intentional, seems to me it should not show the time on the second row in this case, only at the actual start of the event. That workaround is a good way to remove it.

In the case of 5-day course though, it may be better to make it an "allDay" event (remove the times from start/end) or you could add each day as it's own event to capture the start/end of each day (better for other views).

@ekrismer
Copy link

Updating your Codepen to 6.1.4 (from 5.3.1) changes the time text so it displays the event start time on the second row as well (https://codepen.io/erabl/pen/abazBLX):

grafik

Here's another example that shows the start / end time of an event in 24 hours format (https://codepen.io/erabl/pen/XWPJNVy):

grafik

Be aware that the "Test Event" at the end of the month displays a misleading end time!
This is probably related to #3038 and https://stackoverflow.com/questions/75458745/fullcalendar-how-to-get-consistent-event-time-format-for-overnight-events-indep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants