fullcalendar.js 24 часовой календарь
Как перейти с am/pm на 24-часовой формат времени?
5 ответов:
Измените h (: mm)tt и /h:mm{ - h: mm} на H в fullcalendar.js
setDefaults({ allDaySlot: true, allDayText: 'all-day', firstHour: 6, slotMinutes: 30, defaultEventMinutes: 120, axisFormat: 'H', //,'h(:mm)tt', timeFormat: { agenda: 'H' //h:mm{ - h:mm}' }, dragOpacity: { agenda: .5 }, minTime: 0, maxTime: 24 });
Необходимо настроить свойство
timeFormat
объекта календаря.
http://arshaw.com/fullcalendar/docs/text/timeFormat/