admin管理员组

文章数量:1327945

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:

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/770893

Share Improve this question edited Dec 3, 2010 at 9:49 Jason94 asked Dec 3, 2010 at 9:27 Jason94Jason94 13.6k37 gold badges113 silver badges189 bronze badges 2
  • look at the last part of my answer it changes just that – Breezer Commented Dec 3, 2010 at 9:54
  • there i go! +1 and accepted answere to you Breezer, thank you! – Jason94 Commented Dec 3, 2010 at 10:02
Add a ment  | 

1 Answer 1

Reset to default 8

check this out

http://arshaw./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./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',

本文标签: javascriptShowing 0600 instead of 6am in FullCalendarStack Overflow