Another correction on the mysql date query
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 2 Mar 2017 20:30:31 +0000 (15:30 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 2 Mar 2017 20:30:31 +0000 (15:30 -0500)
Need to remember to use the Y-m-d instead of m/d/Y format when using
dates in mysql where.

index.php
models/front/events/rssFeed.php

index 5b306e5..455bb51 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.14
+ * Version: 1.6.15
  * 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.14
+ * @version 1.6.15
  */
 
 /*
@@ -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.14');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.15');
 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 7870a98..fa367ef 100644 (file)
@@ -32,7 +32,7 @@ class GlmMembersFront_events_rssFeed 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)) {