如何将上午/下午时间格式更改为 24 小时制?
最佳答案
在 fullcalendar.js 中将 h(:mm)tt 和/h:mm{ - h:mm} 更改为 H
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
});
关于javascript - fullcalendar.js 24 小时日历,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4298656/