window.open中的Fullcalendar时区不正确(谷歌日历

时间:2015-09-07 19:24:22

标签: timezone fullcalendar google-calendar-api window.open

有一段时间,我正在使用fullcalendar.io中的Google日历 最近我注意到当我点击活动并且我没有登录谷歌的帐户时,我的活动在我的时区(欧洲/布鲁塞尔)中“发布”。

它们在日历月视图和Google日历中都列出正确。

附注:当我登录我的Google帐户时,我的活动时间是正确的。

这是我的一段代码:

$(document).ready(function() {
$('#calendar').fullCalendar({
    firstDay:1,
    weekNumbers:true,
    header: {
        left: 'prev,next today',
        center: 'title',
        right: 'month,agendaWeek,agendaDay'
    },
    defaultView: 'month',

    eventClick: function(event) {
            // opens events in a popup window
            window.open(event.url, 'gcalevent', 'width=700,height=600');
            return false;
        },

任何帮助或建议?

提前致谢

0 个答案:

没有答案