Page 1 of 1

Change time format in fullcalender CGCalendar

Posted: Wed Apr 27, 2016 7:47 pm
by Masweb
Is there a way to change the time format in the fullcalendar to a 24 hours time.
Knipsel.PNG
Knipsel.PNG (4.17 KiB) Viewed 2104 times
I'm using CMSMS 2.1.3 and CGCalendar 2.1.1

Re: Change time format in fullcalender CGCalendar

Posted: Thu Apr 28, 2016 9:17 am
by Rolf
Google strftime

Re: Change time format in fullcalender CGCalendar

Posted: Thu Apr 28, 2016 11:08 am
by Masweb
Hi Rolf,

Tried that but looks likes it's not working on this javascript.

Other sugestions?

Re: Change time format in fullcalender CGCalendar

Posted: Thu Apr 28, 2016 11:36 am
by velden
Took me a while to find this one:

Inside the FullCalendar template add one option 'eventTimeFormat'

Code: Select all

...
dayNamesShort: {$datestrings.dayNamesShort},
     firstDay: {$firstdayofweek},
     eventTimeFormat: 'HH:mm',
     columnFormat: {
        month: 'ddd',
        week: 'ddd d/w',
        day: 'dddd d/M'
     },
...

[Solved] Re: Change time format in fullcalender CGCalendar

Posted: Thu Apr 28, 2016 1:40 pm
by Masweb
YES!!! Thanks Velden. That's it :)