Changing the time zone in Arshaw FullCalendar

In my opinion, Arshaw FullCalendar displays events according to the time zone of the local computer operating system. I assume this is done by the javascript Date () object, which is also based on the local computer operating system. I have an application that has group calendars and a group’s time zone, I want each local Arshaw calendar to be displayed in accordance with this group’s time zone, no matter what time zone this computer is. How do you do this?

Note. I looked through the documentation carefully enough and did not find such an option. I hope javascript has something that matches php date_default_timezone_set (), which I think can be resolved.

* Edit 1/31/2013 12:23 PM CST: I send everything to the calendar as unix timestamps, so I assume that the ignoreTimezone option is not applicable here, as described in this stackoverflow: jQuery FullCalendar time zone synchronization

+6
source share
1 answer

You should probably try to set the parameter "ignoreTimezone" to "false" and specify the FullSalendar Arshaw date in ISO8601.

You can get more information about this here: http://arshaw.com/fullcalendar/docs/event_data/ignoreTimezone/

To convert unix timestamps to ISO8601, you can use this in javascript:

var d = new Date(1360412434000).toISOString(); 

This is ECMAScript 5. See here for compatibility and backup code: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toISOString

+5
source

All Articles