fullcalendar-columns icon indicating copy to clipboard operation
fullcalendar-columns copied to clipboard

.start and .end return wrong date in FullCalendar

Open JonSkeetC opened this issue 9 years ago • 0 comments

Hi there, thanks for the amazing work about the resource adding. I've noticed a bug and I want propose this to @aromka and also @mherrmann In particular if I want get the start date of my calendar this is returned correctly but the end date is returned wrong. I'll be more specific:

I'm on weekday visualization, friday for example, I do:

       $calendar.fullCalendar('getView').start.toDate();

I get Fri Oct 23 2015 00:00:00 GMT+0200

and this is good, but if I've 3 columns in one day and I'll get the end date like this:

      $calendar.fullCalendar('getView').end.toDate();

the code return me this:

       Mon Oct 26 2015 00:00:00 GMT+0100

The result is wrong because it should be: Fri Oct 23 2015 23:59:59 GMT+0100 or something like that specifies the end of friday (the current day). This bug should be fixed urgently 'cause it's too important for the whole structure. I'm surprise that no one noticed.

I hope in a fast solution. Thanks for the good library, I'm waiting a response. Have good day.

JonSkeetC avatar Oct 23 '15 16:10 JonSkeetC