Yii - FullCalendar - How to install TimeZone?

I am using FullCalendar:

http://arshaw.com/fullcalendar/

Can I set the time zone? I would like to allow my users to select the time zone that they would like to view on the calendar. Right now, the time of the event is ONLY changing if I change the system time on my laptop. I am using version 1.5.3 and have seen this in the documentation:

<script type='text/javascript'> $(document).ready(function() { $('#calendar').fullCalendar({ events: { url: 'http://www.google.com/your_feed_url/', className: 'gcal-event', // an option! currentTimezone: 'America/Chicago' // an option! } }); }); </script> 

I tried to set currentTimezone and the time did not change. I also looked at the included javascript files and cannot link to "currentTimezone". How is this possible in versions 1.5+?

+4
source share
1 answer

Try setting ignoreTimezone to false .

 <script type='text/javascript'> $(document).ready(function() { $('#calendar').fullCalendar({ events: { url: 'http://www.google.com/your_feed_url/', className: 'gcal-event', // an option! currentTimezone: 'America/Chicago' // an option! }, ignoreTimezone: false }); }); </script> 

Let me know if this helps.

+2
source

All Articles