From: Steve Sutton Date: Thu, 2 Mar 2017 19:58:31 +0000 (-0500) Subject: Only fetch current event for the ical Feed. X-Git-Tag: v1.6.14^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e09e7fd7d90b65d905476f36611f43d04aec73bd;p=WP-Plugins%2Fglm-member-db-events.git Only fetch current event for the ical Feed. Updated the date format for fetching correct date range of events. --- diff --git a/index.php b/index.php index 22f479f..5b306e5 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Events * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.6.13 + * Version: 1.6.14 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -20,7 +20,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.6.13 + * @version 1.6.14 */ /* @@ -38,7 +38,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.13'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.14'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.1'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/front/events/icalFeed.php b/models/front/events/icalFeed.php index fb13ba0..ba2dae9 100644 --- a/models/front/events/icalFeed.php +++ b/models/front/events/icalFeed.php @@ -32,7 +32,7 @@ class GlmMembersFront_events_icalFeed extends GlmMembersFront_events_baseAction public function modelAction($actionData = false) { $action = ''; - $fromDate = date('m/d/Y'); + $fromDate = date('Y-m-d'); $this->dateRange = "start_time >= '{$fromDate}'"; if ( isset($_REQUEST['eventId']) && $eventId = filter_var($_REQUEST['eventId'], FILTER_VALIDATE_INT)) {