Events spanning multiple days do not display correctly in full screen

My fullcalendar Big Party event starts on Monday at 10:00 and ends on Wednesday at 6am. Thus, the event should cover 3 days in a month view. Duration is 44 hours (problem because it is less than 48 hours ???).

title: 'Big Party', start: '2014-09-15T10:00', end: '2014-09-17T06:00' 

The event runs from Monday to Tuesday per month. But why is the end of the event not on Wednesday?

This script shows the problem: http://jsfiddle.net/3E8nk/439/

Thanks. Tobi

+5
source share
1 answer

You need to change nextDayThreshold: '09: 00: 00 ', // 9am option

See http://jsfiddle.net/3E8nk/440/

 $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, defaultDate: '2014-09-15', editable: true, nextDayThreshold: '00:00:00', // 9am events: [ { title: 'Birthday Party', start: '2014-09-15T10:00:00', end: '2014-09-17T06:00:00' } ] }); 
+10
source

Source: https://habr.com/ru/post/1202742/


All Articles