且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在FullCalendar中禁用营业时间

更新时间:2023-01-21 10:34:22

请使用 nextDayThreshold 完整日历中的选项

  nextDayThreshold:'00:00:00'

了解更多信息:
https://fullcalendar.io/docs/event_rendering/nextDayThreshold/


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

Please use nextDayThreshold option in full calendar

nextDayThreshold: '00:00:00'

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