How to disable business hours in FullCalendar

試著忘記壹切 提交于 2019-12-04 05:48:30

问题


I am trying to incorporate FullCallendar in one of our application to show events. Now I am facing a problem with business hours. In the month view it is showing wrong end date (one day less than actual) if any event ends before 9 am. So for example, say I have two following events

Event 1: Start date&time : 2016-11-09T10:00, End date&time : 2016-11-20T17:30

Event 2: Start date&time : 2016-11-09T10:00, End date&time : 2016-11-20T08:30

In this case in the month view, Event 1 is covering all dates from 9 to 20, however Event 2 is covering dates from 9 to 19.

I tried in Google with this issue and found following link

How to set the business hours

But it does not solved the issue. I want to disable business hours. I tried by setting it false. But nothing happen.

Please help


回答1:


Please use nextDayThreshold option in full calendar

nextDayThreshold: '00:00:00'

for more information: https://fullcalendar.io/docs/event_rendering/nextDayThreshold/



来源:https://stackoverflow.com/questions/40522024/how-to-disable-business-hours-in-fullcalendar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!