Issue 677: Event displayed in previous month view, but not in the month view it should be displayed.
Status:  Done
Owner: ----
Closed:  Nov 2010
Reported by matt.fai...@gmail.com, Oct 19, 2010
What steps will reproduce the problem?

1. Create page which returns the following json object when you click on prev button to jump between May 2009 to April 2009:

[{"start":1241910000,"allDay":true,"title":"INV000141"},{"start":1242514800,"allDay":true,"title":"INV000178"},{"start":1241218800,"allDay":true,"title":"INV000179"},{"start":1242428400,"allDay":true,"title":"INV000180"},{"start":1242342000,"allDay":true,"title":"PUR000180"},{"start":1242255600,"allDay":true,"title":"PUR000180"},{"start":1242514800,"allDay":true,"title":"PUR000180"},{"start":1242514800,"allDay":true,"title":"PUR000180"},{"start":1242514800,"allDay":true,"title":"PUR000180"},{"start":1242082800,"allDay":true,"title":"PUR000180"}]

2. Load the json feed into fullcalendar and navigate to May 2009

What is the expected output? What do you see instead?

The expected output should be all 10 events being displayed on the calendar for the month of may. Instead I see no events for May, however April 2009 view shows one event on May 2nd.

What version of the product are you using? On what operating system?
fullcalendar 1.4.8 on Mac OSX 10.6.4.

Please provide any additional information below.

Basically I am pulling back events from a database whos date falls within the date range provided by the start and end params, and returning them as a json file which I read into fullcalendar. This all works great, and I am getting data displaying in my calendar, however it appears in the wrong place.

I have attached a screenshot to demonstrate the problem. As you can see there is an event which appears on the 2nd of May in the April month view, but does not appear in the May month view.

A quick look at the console with firebug shows that in fact an empty json object is returned for the month of May 2009. However, when I navigate from May 2009 to April 2009 a Json object with 4 records is returned, yet only one is displayed on the calendar.

I am correctly converting my dates I pull from my database to a unix timestamp for fullcalendar.
jquery_full_calendar_bug.jpg
137 KB   View   Download
Oct 19, 2010
#1 matt.fai...@gmail.com
I went back to my code and realised the mistake laid my end. I was filtering events by date_created but displaying date_due, since we are using the calendar for invoices. date_due is typically 30 days after date_created which was why I was seeing events for one month and not the next, due to how they were being filtered.

My bad. Great plugin.
Nov 21, 2010
Project Member #2 adamrs...@gmail.com
glad you figured it ou
Status: Done