Bug fix for event offset
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 12 Oct 2017 20:20:43 +0000 (16:20 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 12 Oct 2017 20:20:43 +0000 (16:20 -0400)
Need to pass the timestamp for it to get the correct time offset.

classes/icalReader.php
index.php

index 45e07cf..b70c6bd 100644 (file)
@@ -215,7 +215,7 @@ class ICal
                             (int)$date[1]);
         // add offset in seconds if zulu
         if ( $zulu ) {
-            $timestamp += date('Z');
+            $timestamp += date( 'Z', $timestamp );
         }
         return  $timestamp;
     }
index c3bd161..31d7f82 100644 (file)
--- a/index.php
+++ b/index.php
@@ -4,7 +4,7 @@
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
 
- * Version: 1.6.67
+ * Version: 1.6.68
 
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
@@ -22,7 +22,7 @@
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
 
- * @version 1.6.67
+ * @version 1.6.68
 
  */
 
@@ -47,7 +47,7 @@ if (!defined('ABSPATH')) {
  *  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.67');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.68');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.4');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.