问题描述
它的所有工作免除我所有的活动都像这样早一个小时显示出来:
示例事件:
{title:'',start:'2014/11/08 02:00',end:'2014/11/08 09:30',description:'',id: '10'}
在查看日历时,此事件会提前一小时显示,如下所示: p>
开始日期:2014/11/08 01:00
结束2014/11/08 08:30
我查看了我的数据库表和输入源,输出结果与第一个类似(从02:00开始)
我的日历设置为以下时间格式(取自网站):
$ .fullCalendar.moment('2014-05-01T12:00:00');
为什么我的活动提前一小时?
按要求配置:
$ .fullCalendar.moment '2014-05-01T12:00:00');
$('#calendar')。fullCalendar({
header:{
left:'prev,next today',
center:'title',
right:'month,agendaweek,agendaDay'
},
defaultView:'agendaweek',
axisFormat:'HH:mm',
timeFormat:{
议程:'H:mm { - H:mm}'
},
firstHour:8,
defaultDate:Date(),
可选:true,
formatDate:,
selectHelper:true,
firstDay:1,
allDaySlot:false,
height:600,
editable:true,
我使用2.1.1
如果您需要保留当前的时区设置,您可以添加
'timezone':'yourtimezone',
并在您的后端获取事件php?其他?格式e像这样的通风口
{title:event1,start:2013-10-20T02:00:00 + 01:00 }
^ ^
将始终显示为2:00 |
|
时区偏移总是+01:00
Well im trying to make my fullcalender work with Ajax and a database.its all working exept all my events are shown one hour early like this:
example event:
{title:'',start:'2014/11/08 02:00',end:'2014/11/08 09:30',description:'',id:'10'}
When looking at the calendar this event is displayed one hour early like this:
start:2014/11/08 01:00end 2014/11/08 08:30
I looked at my databasetable and my source and the output is like the first one.(the start at 02:00)
My calendar is setup with the following time format(taken form the site):
$.fullCalendar.moment('2014-05-01T12:00:00');
Why are my events one hour early?
As requested the config:
$.fullCalendar.moment('2014-05-01T12:00:00');
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultView: 'agendaWeek',
axisFormat: 'HH:mm',
timeFormat: {
agenda: 'H:mm{ - H:mm}'
},
firstHour: 8,
defaultDate:Date() ,
selectable: true,
formatDate:"",
selectHelper: true,
firstDay:1,
allDaySlot:false,
height:600,
editable: true,
Im using 2.1.1
if you need to keep your current timezone settings you can add
'timezone' : 'yourtimezone',
and at your backend for fetching events php? some other? format events like this
{ title: "event1", start: "2013-10-20T02:00:00+01:00" }
^ ^
will always display as 2:00 |
|
the timezone offset will always be +01:00
这篇关于完整日历将所有事件提前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!