Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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...
Comment | File | Size | Author |
---|---|---|---|
#1 | fullcalendar_december-2148083-1.patch | 874 bytes | pjcdawkins |
Comments
Comment #1
pjcdawkins CreditAttribution: pjcdawkins commentedThis patch uses
mktime()
, which the PHP manual says:Comment #2
slidegt CreditAttribution: slidegt commentedThe patch solved the issue!
Thanks for the patch!
Comment #3
oenie CreditAttribution: oenie commentedSolved my customer issue too, just as i was about to dive into the code :)
Comment #4
hefox CreditAttribution: hefox commentedPatch fixes my issue also
Comment #5
tim.plunkettSo 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