From: Steve Sutton Date: Thu, 12 Oct 2017 20:20:43 +0000 (-0400) Subject: Bug fix for event offset X-Git-Tag: v1.6.68^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c1c8749596676a99fa9b6bee4bb786ffff2f3ca3;p=WP-Plugins%2Fglm-member-db-events.git Bug fix for event offset Need to pass the timestamp for it to get the correct time offset. --- diff --git a/classes/icalReader.php b/classes/icalReader.php index 45e07cf..b70c6bd 100644 --- a/classes/icalReader.php +++ b/classes/icalReader.php @@ -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; } diff --git a/index.php b/index.php index c3bd161..31d7f82 100644 --- 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 * @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.