I'm using Fullcalendar.io to render a calendar.
For some reason, the last event always shows as "+1 more" instead of a bar like the previous events.
JSON looks like
{
"events": [
{
"lid": "5",
"sGroupID": "5",
"start": "2023-07-10T08:00:00",
"end": "2023-07-14T09:00:00",
"startTimex": "08:00:00",
"endTimex": "09:00:00",
"color": "#9BB02B",
"title": "test"
},
{
"lid": "6",
"sGroupID": "5",
"start": "2023-06-26T08:00:00",
"end": "2023-06-30T17:00:00",
"startTimex": "08:00:00",
"endTimex": "17:00:00",
"color": "#3C00D4",
"title": "test2"
},
{
"lid": "7",
"sGroupID": "5",
"start": "2023-06-05T20:00:00",
"end": "2023-06-09T23:00:00",
"startTimex": "20:00:00",
"endTimex": "23:00:00",
"color": "#4F0B2B",
"title": "test3"
}
]
}
and code is
var calendar = new FullCalendar.Calendar(calendarEl, {
initialDate: currentDate,
editable: true,
selectable: true,
initialView: "multiMonthYear",
height:800,
timeZone: "US",
multiMonthMaxColumns:1,
nextDayThreshold: "00:00",
businessHours: true,
eventClick: function(info) {
console.log(info.event.extendedProps.lid );
console.log(info.event.extendedProps.sGroupID );
console.log(info.event.title);
console.log(info.event.extendedProps.startTimex );
console.log(info.event.extendedProps.endTimex );
console.log(info.event.startStr);
console.log(info.event.endStr);
},
events: json.events
});
calendar.render();
spinner(0);
Why is the last event not rendering correctly?