My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2287: Google Calendar Events With Start Times After 5:00pm Do Not Show Up In Agenda Lists
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Nov 2014


Sign in to add a comment
 
Reported by rbend...@alienapparatus.com, Sep 16, 2014
If a Fullcalendar is created to show a Google Calendar, and it's default view is set to either "agendaList" or "agendaDay", events after 5:00pm do not appear on the list.

If, on the other hand, another view is shown as the default, such as "month", the events do show up.  If the view is switched to "agendaList" or "agendaDay" from another view, the events also show up properly.  The events just do not show up when "agendaList" or "agendaDay" is the default view.

Tests were done using other data sources, including constructing events in code.  Other data sources seem to work properly.  My Google account does not have a control to set up working hours, as some accounts apparently do.  To further test whether or not working hours is an issue, I've added events in the early morning (5:00 am) and they do show up properly; it's just the evening ones that do not appear.

In the attached screenshot, both calendars are using the same Google Calendar feed.  The agenda view on the left has missing events compared to the month view.

All javascript and css files are unmodified Fullcalendar v2.1.1 files.
Fullcalendar Screenshot.tiff
142 KB   Download
itvTest4.html
10.6 KB   View   Download
Sep 16, 2014
#1 rbend...@alienapparatus.com
Just wanted to add... the html file attached above is also online for easy viewing and testing at this address:

http://alienapparatus.com/itv/itvTest4.html


Sep 19, 2014
#2 rbend...@alienapparatus.com
I've been seeing a lot of funny things going on when getting gcal events in Fullcalendar when the default view is not set to 'month'.  Events seem to go missing until you change the calendar to 'month' view and then back again.  The original bug report above is an example of this.  Additionally, 'agendaWeek' views loose events also until the view is changed to 'month' and then switched back again.  I just saw a case where all of the Saturday events are missing from the 'agendaWeek' view until I switched to 'month' view and then back again.  One thing to also mention... when in 'month view', events in the last day of the month were also missing, so maybe 'month' view isn't totally correct either.  Maybe events on the last period are not fetched or rendered, regardless of the view.

 Issue 867 , marked closed, seems to be very close to what I've been seeing.  The person who reported  issue 867  didn't seem to be very happy that it was closed because he was still seeing the same issue.  I can verify that there are missing events from gcal sources - 
check out my example page.  If there is anything else that I can help with on my end to nail this down, please let me know.
Sep 20, 2014
#3 rbend...@alienapparatus.com
I've been pulling my hair out on this issue non-stop for three days.  I nearly gave up on Fullcalendar over this... but I managed to find a workaround to get things going.  It's kind of a hack, but it seems to work, pending testing of the myriad varieties of web browsers out there.

So here's how I got things looking right with agendaViews:

In the initialization of the Fullcalendar, set the defaultView to 'month'.  Next, set lazyFetching to true.  Now, set the 'loading' method to change the view type. The initialization should look something like this:

		$('#calendar').fullCalendar({
			header: {
				left: 'prev,next today',
				center: 'title',
				right: ''
			},		
			defaultView: 'month',
			allDayDefault: false,
			timeFormat: '',
			allDaySlot: false,
			editable: false,
			lazyFetching: true,
			eventLimit: false,			

			events: 'https://www.google.com/calendar/feeds/mycalendarURL',
			
			loading: function(bool) {
				$('#calendar').fullCalendar( 'changeView', 'agendaWeek' );
				}
			
		});

Believe it or not, the original 'month' view does not show up; the agendaWeek view is the only one that appears - at least as I'm testing it here at the moment in Safari on my Mac.

Basically this hack method sets the view to a view that seems to gather all the events correctly, then, the view is switched to what we really want to see.  By turning lazyFetching on, the events that are already loaded in stay loaded in.

Note that if the user navigates to far future or past events, more events will need to be loaded.  When this happens, everything goes amuck once again, even if the user navigates back to where he started.  For my application, I am limiting viewing to a small date range, so this is fine.  For other applications, this could be a problem.

Hopefully a proper solution will someday appear because I found at least three other people who have seen this problem after I scoured the internet trying to find a solution.  Hopefully my hack solution will help others until this is formally fixed.
Oct 30, 2014
Project Member #4 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Reproducing
Labels: Type-Bug
Nov 25, 2014
Project Member #5 adamrs...@gmail.com
This is almost definitely fixed in v2.2.2 and v1.6.6

The new gcal api forced me to do things differently. Can you try the updates (keeping in mind the migration needed for v3 google calendar api) and let me know if there are any more problems?

http://fullcalendar.io/docs/google_calendar/
Status: Done
Sign in to add a comment

Powered by Google Project Hosting