I am using full Calendar and i think i m doing something wrong. As i set the property ignoreTimezone:
"true", but it doesn't seems to work, it always displays the time according to +5:30(local Timezone), when i set the time (by converting in to another timezone using PHP), always displays according to +530
allDay: false end: "Thu, 18 Jul 2013 17:00:00 +0100" id: 5 ignoreTimezone: true start: "Thu, 18 Jul 2013 15:00:00 +0100" title: "test 2nd"
As here, time shows "15:00:00-17:00:00", but in calendar it displays somthing this "19:30:00-21:30:00" i.e adding with +5:30, instead i set the ignoreTimezone to true.
Any idea
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();
来源:https://stackoverflow.com/questions/17720630/fullcalendar-ignoretimezone-doesnt-seems-to-work