Page 1 of 1

Calendar start time

Posted: 2022-09-02 19:31
by AhmedBR
Hi,

Does anybody know to how to change the start time of the calendar?
calendar.png
calendar.png (25.31 KiB) Viewed 3048 times
Thanks

Re: Calendar start time

Posted: 2022-09-02 23:37
by zibrahim
Hi there,
Open your hooks/calendar-CALENDARNAME.php file and look for

Code: Select all

height: 'auto', // https://fullcalendar.io/docs/height
contentHeight: 'auto', // https://fullcalendar.io/docs/contentHeight
aspectRatio: 2.5, // https://fullcalendar.io/docs/aspectRatio
(somewhere at line 56)
Add the following code below the "aspectRatio: 2.5......"

Code: Select all

minTime: '09:00:00', // THIS IS min time in day grid
maxTime: '18:00:00', // THIS IS max time in day grid
to become like this...

Code: Select all

height: 'auto', // https://fullcalendar.io/docs/height
contentHeight: 'auto', // https://fullcalendar.io/docs/contentHeight
aspectRatio: 2.5, // https://fullcalendar.io/docs/aspectRatio
minTime: '09:00:00', // THIS IS min time in day grid
maxTime: '18:00:00', // THIS IS max time in day grid
Change the minTime and maxTime value according to your requirement.
Hope this help.

Re: Calendar start time

Posted: 2022-09-03 01:05
by AhmedBR
Thanks zibrahim, that worked nicely.

Re: Calendar start time

Posted: 2022-10-30 08:25
by SkayyHH
Hi, I would like to give you a hint about the AppGini calendar. There is a problem here if you use the calendar with different user authorizations like me. If the calendar is set up for a table for which the current user does not have permission, the calendar will produce 403 errors. The errors slow down the loading of the calendar content and massively inflate the log file. Better to use different calendar settings for different user groups.