fullCalendar ignoreTimezone doesn't seems to work

醉酒当歌 提交于 2019-12-05 05:33:23

The option you are using is only available in version 1 of fullcalendar. Check if you are using version 1 or 2. If not sure about the version, you can check by just hitting $.fullCalendar in your console and you will get the version you are using.

Solution (if version 2):

As per version 2 of fullcalendar the option ignoreTimezone is deprecated as stated here.

As ignoreTimezone was an event property, now you need to set fullcalendar property as

timezone: false, //ignores the time zone

Other possible values you can check here.

A working Demo by the official website.

Note : It's recommended to check the deprecated list of options if you are using newer fullcalendar version, as few other options have been removed in the newer version.

if you want set any specify time zone you can try this code..

date_default_timezone_set('Asia/Calcutta');

$script_tz = date_default_timezone_get();

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!