Fullcalendar end date wrong by one day

前端 未结 10 2257
温柔的废话
温柔的废话 2020-12-06 04:42

I am making a fullCalendar backed car reservation functionality. This is the coffescript file.

    updateEvent = (event, delta, revertFunc) ->
      $.aja         


        
10条回答
  •  庸人自扰
    2020-12-06 05:03

    I dont know if its still usefull, but you can use this method, add a day to your end date using :

    $date = new DateTime('2000-01-01');
    $date->add(new DateInterval('P0Y0M1DT0H0M0S'));
    

    this will increment your end date by one day.

提交回复
热议问题