Calendar list time format

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mpol_ch
User
Posts: 896
Location: Switzerland

Calendar list time format

Post by mpol_ch »

Hi,
I am using the calendar in v2024.
I can not change the time format to 24h in list view and in title.
I used same configuraiton in v2023 with no problem.

Right now I see time in this format: 4.30pm - 5.30pm
This should be: 16:30 - 17:30

In page_head I have this code:

     <script>
         ew.calendarOptions.fullCalendarOptions.firstDay = 1; // 0 = Sunday, 1 = Monday
        ew.calendarOptions.fullCalendarOptions.timeFormat = 'H:mm'; // 'H' represents 24-hour format, 'mm' represents minutes
       ew.calendarOptions.fullCalendarOptions.slotLabelFormat = 'H:mm';
   
     </script>

Any idea where to check?
mpol_ch


arbei
User
Posts: 9787

Post by arbei »

You may refer to FullCalendar docs on eventTimeFormat.


mirzam
User
Posts: 2

Post by mirzam »

Did you resolve this and how ? Stuck with the same thing. I need the full calender in 24h format.


Post Reply