There is a default event node visible at admin/content, but that indeed the node does not display at /events.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2184905-commons-event-demo-date-5.patch | 896 bytes | devin carlson |
| #3 | 2184905-commons-event-demo-date-3.patch | 1.04 KB | ezra-g |
| #2 | 2184905_event_date.patch | 763 bytes | meba |
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