Yesterday (the beginning of December) I found that the calendar (which defaults to Month view) was displaying no events. It did work, however, when clicking forward > and also when subsequently clicking back <.

Essentially FullCalendar seems to be calling strtotime() on the string "2013-13 +2 weeks" which doesn't work (it results in 1970-01-01). I think it should convert "2013-13" to "2014-01" first.

A patch will follow...

CommentFileSizeAuthor
#1 fullcalendar_december-2148083-1.patch874 bytespjcdawkins
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pjcdawkins’s picture

Status: Active » Needs review
FileSize
874 bytes

This patch uses mktime(), which the PHP manual says:

is useful for doing date arithmetic and validation, as it will automatically calculate the correct value for out-of-range input

slidegt’s picture

The patch solved the issue!

Thanks for the patch!

oenie’s picture

Status: Needs review » Reviewed & tested by the community

Solved my customer issue too, just as i was about to dive into the code :)

hefox’s picture

Patch fixes my issue also

tim.plunkett’s picture

Status: Reviewed & tested by the community » Fixed

So this is only triggered with AJAX on but without exposed filters, which is why I didn't see this myself.

mktime() is a little weird, but its a good fix. Thanks!

http://drupalcode.org/project/fullcalendar.git/commit/ed7abf3

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.