CMS MADE SIMPLE FORGE

CGCalendar

 

[#11466] FullCalendar - Event spanning all day are one day too short

avatar
Created By: Darren Kierman (kierweb)
Date Submitted: 2017-07-07 14:01

Assigned To: Robert Campbell (calguy1000)
Resolution: Fixed
State: Open
Summary:
FullCalendar - Event spanning all day are one day too short
Detailed Description:
Apparently this is how FullCalendar works and the end is exclusive (rather than
inclusive) on the calendar, which means they are always one day too short on the
calendar.

https://stackoverflow.com/questions/27604359/fullcalendar-event-spanning-all-day-are-one-day-too-short

A fix for this is to add the following to the FullCalendar Jquery Call ...

eventDataTransform: function(event) {
 if(event.allDay) {
  event.end = moment(event.end).add(1, 'days')
 }
 return event;
},


Any chance, this can be added to the templates within your module?

History

Comments
avatar
Date: 2018-02-17 12:03
Posted By: Robert Campbell (calguy1000)

fixed in php
      
Updates

Updated: 2018-02-17 12:03
resolution_id: => 7