FullCalendar SlotDuration 24:00和weekNumbers:true更改日期格式 [英] FullCalendar SlotDuration 24:00 and weekNumbers: true alters date formatting
问题描述
我正在使用完整的日历计划程序..和设置
I am using full calendar scheduler.. and the setting
dayOfMonthFormat:"ddd-MMM DD",
dayOfMonthFormat: 'ddd - MMM DD',
提供像周一至11月28日这样的列
to give columns like Mon - Nov 28
我也有weekNumbers:真实设置
I also have weekNumbers: true set
此功能非常适合带有槽(即minTime,maxTime,slotDuration(即3小时))的视图.
this works great for views with slots, i.e. a minTime, maxTime, a slotDuration i.e. 3 hours.
我得到这样的显示
-
但是,如果我有一个slotDuration为24小时的视图,则可以有weekNumbers,但是Date Formatting被忽略/错误.
However, if I have a view where the slotDuration is 24 hours, I can have the weekNumbers but the Date Formatting is ignored / wrong.
即
-
在我看来,我可以通过将slotLabelFormat:'ddd-MMM DD'设置为正确的日期格式.但这意味着我没有weekNumbers
I can force the date to the correct format by putting slotLabelFormat: 'ddd - MMM DD', in my view.. but this means I get no weekNumbers
-
有人知道我的自定义日期/列格式都可以使用的解决方案,但是我也可以使用24小时制获取我的weekNumbers吗?
Does anyone know of a solution where both my custom date / column format will work, but that I will also get my weekNumbers, with 24 hour slots?
推荐答案
FullCalendar支持建议这样做,对于我来说是可行的.
FullCalendar support suggest this, which worked out in my case.
slotLabelFormat: [
'[Week] W',
'ddd - MMM DD'
]
这篇关于FullCalendar SlotDuration 24:00和weekNumbers:true更改日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!