I'm working on a events cms and using fullCalendar.io to show the events. My events are only dates without time and I'm storing the informations in a mySQL database. I have no way to change the mySQL column format nor the event insertion method to add a time to the date, although I need to show the end date included while showing the calendar. I'll paste my code to show how it works.
$('#calendar').fullCalendar({
header: {
left: 'prev,next,today',
center: 'title'
},
defaultView: 'month',
eventSources: [{
url: 'getJsonEvents',
type: 'POST',
success: function(data) {
},
error: function() {
},
color: '#2D4047',
textColor: 'white',
}]
});
the column that store the date is a simple DATE mysql column.
EDIT: To be clear, the problem is that my event end (eg.) the 19th but on the calendar view it seems to end the 18th.