Correction for the time zone
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 17 Jun 2016 15:17:15 +0000 (11:17 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 17 Jun 2016 15:17:15 +0000 (11:17 -0400)
Should just use the current time given and not adjust the time zone

index.php
models/admin/management/events.php

index 7922b0c..b84721c 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.2.5
+ * Version: 1.2.6
  * 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.2.5
+ * @version 1.2.6
  */
 
 /*
@@ -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.2.5');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.6');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.0.18');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 0916eb7..f84a737 100644 (file)
@@ -1448,8 +1448,8 @@ class GlmMembersAdmin_management_events extends GlmDataEventsManagement
                     }
                     if(!empty($custom_times)){
                         $stamp = array();
-                        date_default_timezone_set('UTC');
-                        //$serialized_custom_times = serialize($custom_times);
+                        //date_default_timezone_set('UTC');
+                        $serialized_custom_times = serialize($custom_times);
                         foreach($custom_times as $custom){
                             $convert = date('U',strtotime($custom));
                             $stamp[] = date('Y-m-d', $convert);