Fullcalendar显示错误的每月视图

Gab*_*iel 4 fullcalendar jscript

我在Asp.Net项目中使用Fullcalendar,我正在使用"事件"功能来刷新日历中的项目.

我在myArray中放置事件以在回调函数中传递它,如下所示:

var event = {
                title: 'Disponível',
                start: moment(horario.DtInicio),
                end: moment(horario.DtFim),
            }
myArray.push(event);
Run Code Online (Sandbox Code Playgroud)

其中horario.DtIniciohorario.DtFim是Asp.Net json日期(例如"/Date(1423321200000)/")

当我在月视图中显示callendar时,此日期显示在2015年6月6日(mm/dd/yyyy),但是当我切换到其他视图时,此事件显示在2015年7月2日.实际日期是2015年7月2日.

有没有人遇到过这种情况?

Rod*_*ela 8

尝试设置日历的时区:

$('#calendar').fullcalendar({
    timezone : 'local',
    ...
});
Run Code Online (Sandbox Code Playgroud)