Only fetch current event for the ical Feed.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 2 Mar 2017 19:58:31 +0000 (14:58 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 2 Mar 2017 19:58:31 +0000 (14:58 -0500)
Updated the date format for fetching correct date range of events.

index.php
models/front/events/icalFeed.php

index 22f479f..5b306e5 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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.
index fb13ba0..ba2dae9 100644 (file)
@@ -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)) {