Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Showing 06:00 instead of 6am in FullCalendar

If you choose to view a week or day the left column will by default show 6am, 7am and so on. How do i go about to make it show 06:00, 07:00 and so on instead?

Edit: im talking about the left column i weekview and dayview that by default is 6am, 7am, 8am. NOT the timestamp in the events.

To further point out the problem i want to changes the am/pm to 24hour times for the highlighted part of the image: http://bildr.no/view/770893alt text

like image 742
Jason94 Avatar asked Dec 03 '10 09:12

Jason94


1 Answers

check this out

http://arshaw.com/fullcalendar/docs/text/timeFormat/

you should always check documentation before anything else just a tip

try this

    day: 'h:mm{ - h:mm}', // 5:00 - 6:30
    week: 'h:mm{ - h:mm}', // 5:00 - 6:30

or this one might be it

http://arshaw.com/fullcalendar/docs/agenda/axisFormat/ i think it's this one tbh :P

like this

axisFormat: 'h:mm{ - h:mm}',

FOR A 24 HOUR CLOCK U CHANGE THE CONTENT TO

axisFormat: 'H:mm',
like image 191
Breezer Avatar answered Oct 21 '22 09:10

Breezer