event shows wrong end date by one day
I have training events from database and their start and end dates are in this format "YYYY-MM-DD". For example is:
{
'title':'English Training',
'start':'2015-05-19',
'end':'2015-05-23'
}
But when it is rendered in calendar, it shows wrong end date
I tried adding 12hours on endDate (*just like the answer * here) , and yes it works but now I'm unable to extend the day for an event.
I want to fix this wrong end date issue without losing the capability to extend events. Do you know any solution or hacks?
Adding 12 hours on the endDate of your event won't make it an allDay event anymore, which is why you will loose the ability to extend your event in month view.
However, adding 1 day on the endDate will work perfectly as :
To conclude : if you want an allDay event to end at midnight of day1, you have to set its endDate as day2 !
链接地址: http://www.djcxy.com/p/81268.html上一篇: 在日历中显示从开始日期到结束日期的事件
下一篇: 事件显示错误的结束日期为一天