Closed (fixed)
Project:
Drupal Commons
Version:
7.x-3.x-dev
Component:
Events
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Jan 2014 at 22:43 UTC
Updated:
10 Mar 2014 at 20:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
meba commentedThe reason is that it only shows events with starting date > now and Ribfest event was set up to start Jan 12 - on this date it stopped working.
Comment #2
meba commentedHere is a patch that should set the date to now + 1 month during installation.
Comment #3
ezra-g commentedThanks for the patch!
Here's a revised patch that includes code comments, uses $_SERVER[REQUEST_TIME] instead of time(), and makes the events farther in the future (6 months).
Comment #4
japerryI was thinking it'd be nice for an update script for older sites -- but if you're upgrading you probably don't have default content. looks good to me.
Comment #5
devin carlson commentedTested #3 and didn't run into any issues.
Attached an updated version of #3 which uses the Drupal REQUEST_TIME constant ($_SERVER['REQUEST_TIME'] is stored as a float in PHP >= 5.4.0 and can cause problems) and swaps date() for format_date().
Comment #6
devin carlson commentedTested #5 with a fresh Commons install and verified that the example event content appeared in the events directory with the proper start and end date.
Committed #5 to Commons 7.x-3.x.
http://drupalcode.org/project/commons.git/commit/14c8abd