You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have discovered what I believe to a be a bug with list views, and how event start and end times are displayed when an event spans into the first day of a different view. In other words, a multiple day event is displayed correctly in listWeek and listMonth views, but in the listDay view the times are inconsistent (because the whole event can not be shown in a single view). Not only that, but the last day of the event does not display any time whatsoever.
When in a listWeek or listMonth view, FullCalendar correctly displays the event time on Monday 7th August as starting as 08:00 and finishing at 00:00. Tuesday, Wednesday and Thursday (8th August - 10th August) are correctly shown as all-day events. Friday 11th August starts at 00:00 and finishes at 18:00. This is the behaviour I would expect.
However in listDay view, the event time on Monday 7th of August is shown to start at 08:00 and finish at 23:59. Where's that minute gone!?
Tuesday, Wednesday and Thursday (8th August - 10th August) show correctly as all-day events. On Friday 11th August however, no event start or end times are displayed at all!
Now consider this event which takes place from Monday 14th August until Monday 21st August:
{
title: 'Event spanning over different weeks',
start: '2017-08-14T08:00:00',
end: '2017-08-21T18:00:00'
}
Interestingly in listWeek view, we are displaying the first day of the event as correctly starting at 08:00 and finishing at 00:00. We are no longer missing a minute! The same issue with the disappearing event times for the last date of the event remains however.
Finally, if we look at this event which takes place from Monday 28th August until Friday 1st September:
{
title: 'Event spanning over different months',
start: '2017-08-28T08:00:00',
end: '2017-09-01T18:00:00'
}
Just like with the listWeek view, the listMonth view will correctly display the first day of the event as starting at 08:00 and finishing at 00:00. We do however still have the problem of missing event times on the last day of the event.
What is interesting however, is that if we modify our events that span multiple weeks and multiple months to last just one day longer, the start and end times for the last day of the event will reappear! This indicates to me that this only happens when we span in to the next period of the current view by exactly one day. The reason this will always happen with the listDay view is because we (obviously) only ever have one day in the next period.
May I recommend the following:
Fix an issue with the listDay view where the end time of the first day of an event that spans multiple days is set to 23:59 instead of 00:00 - therefore making it consistent with listWeek, listMonth and listYear.
Ensure that start and end times for the last day of a multiple day event are displayed when the last day of the event spans in to the next period of a view by one day.
Thank you in advance for your help! 😄
The text was updated successfully, but these errors were encountered:
On the day view for "2018-05-01" it shows the correct start time of "11:35pm", but on the day view for "2018-05-02" it shows the start time of "11:35pm" ALSO (which is wrong), when I would think it should be "12:00am" (since it rolled over and started the beginning of that day).
+1 on the issue, happening a similar problem on version 4.1. When having an event spanning multiple days starting at 00:00 if the event does not end at 00:00 the representation of the first day changes (event though it is a whole day).
I have discovered what I believe to a be a bug with list views, and how event start and end times are displayed when an event spans into the first day of a different view. In other words, a multiple day event is displayed correctly in listWeek and listMonth views, but in the listDay view the times are inconsistent (because the whole event can not be shown in a single view). Not only that, but the last day of the event does not display any time whatsoever.
A working JS Bin example that demonstrates the above issues can be found here:
http://jsbin.com/dunaruw/edit?html,output
Consider the following event which takes place from Monday 7th August until Friday 11th August:
{
title: 'Event spanning multiple days',
start: '2017-08-07T08:00:00',
end: '2017-08-11T18:00:00'
}
When in a listWeek or listMonth view, FullCalendar correctly displays the event time on Monday 7th August as starting as 08:00 and finishing at 00:00. Tuesday, Wednesday and Thursday (8th August - 10th August) are correctly shown as all-day events. Friday 11th August starts at 00:00 and finishes at 18:00. This is the behaviour I would expect.
However in listDay view, the event time on Monday 7th of August is shown to start at 08:00 and finish at 23:59. Where's that minute gone!?
Tuesday, Wednesday and Thursday (8th August - 10th August) show correctly as all-day events. On Friday 11th August however, no event start or end times are displayed at all!
Now consider this event which takes place from Monday 14th August until Monday 21st August:
{
title: 'Event spanning over different weeks',
start: '2017-08-14T08:00:00',
end: '2017-08-21T18:00:00'
}
Interestingly in listWeek view, we are displaying the first day of the event as correctly starting at 08:00 and finishing at 00:00. We are no longer missing a minute! The same issue with the disappearing event times for the last date of the event remains however.
Finally, if we look at this event which takes place from Monday 28th August until Friday 1st September:
{
title: 'Event spanning over different months',
start: '2017-08-28T08:00:00',
end: '2017-09-01T18:00:00'
}
Just like with the listWeek view, the listMonth view will correctly display the first day of the event as starting at 08:00 and finishing at 00:00. We do however still have the problem of missing event times on the last day of the event.
What is interesting however, is that if we modify our events that span multiple weeks and multiple months to last just one day longer, the start and end times for the last day of the event will reappear! This indicates to me that this only happens when we span in to the next period of the current view by exactly one day. The reason this will always happen with the listDay view is because we (obviously) only ever have one day in the next period.
May I recommend the following:
Thank you in advance for your help! 😄
The text was updated successfully, but these errors were encountered: