| Issue 1534: | Timezone problems when using Google Calendar | |
| 1 person starred this issue and may be notified of changes. | Back to list |
When using this combination, the URL that FullCalendar calls appears to use UTC start/end. For me, in US/Pacific, this is resulting in events after 5PM not appearing for that day when in basicDay view. Here is an example calendar URL that FullCalendar reads: https://www.google.com/calendar/feeds/lfev9nbr1cqf8m451h2arg0tmc%40group.calendar.google.com/public/full?alt=json-in-script&callback=jsonp1347392365873&_=1347392365975&start-min=2012-09-11T00%3A00%3A00Z&start-max=2012-09-12T00%3A00%3A00Z&singleevents=true&max-results=9999&ctz=America%2FLos_Angeles This calendar is populated with 2 daily events, one at 1PM and one at 6PM - the 6PM event is not pulled in the URL above. The time of the event is reported correctly, it's just that the query is not pulling it properly (as if the query is in UTC but the answer is in US/Pacific). This problem is most obvious with basicDay but basicWeek is also not quite right (Saturday's 6PM doesn't appear) or month (it doesn't appear on the final Saturday) so again, the TZ inconsistency is dropping the final event for whichever view is in play. I'm not sure if this is because something changed on Google's side or not but when I try manually specifying a TZ offset in the URL (tweaking gcal.js to use the offset rather than Z) to the following, I get all expected events: https://www.google.com/calendar/feeds/lfev9nbr1cqf8m451h2arg0tmc%40group.calendar.google.com/public/full?alt=json-in-script&callback=jsonp1347392365873&_=1347392365975&start-min=2012-09-11T00%3A00%3A00-07:00&start-max=2012-09-12T00%3A00%3A00-07:00&singleevents=true&max-results=9999&ctz=America%2FLos_Angeles My JS code looks like this: $(div).fullcalendar({ eventSources : [ { url: "https://www.google.com/calendar/feeds/lfev9nbr1cqf8m451h2arg0tmc%40group.calendar.google.com/public/basic", currentTimezone: 'America/Los_Angeles', className: 'events' } ], defaultView: 'basicDay', }); I'd rather not kludge FullCalendar myself - is there a simple fix that can be suggested?
Aug 18, 2013
Project Member
#2
adamrs...@gmail.com
Mergedinto:
667
Feb 21, 2015
looks like this was accidentally merged into the wrong issue a while ago. i'm undoing that. regardless, this bug should have been fixed a while ago
Status:
Done
Mergedinto: |
|
| ► Sign in to add a comment |