From: Steve Sutton Date: Tue, 28 Jun 2016 16:29:57 +0000 (-0400) Subject: Updates to the ical feed for the events X-Git-Tag: v1.2.12^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=218d36f606e95776f286dea7b3d1b40cff709a20;p=WP-Plugins%2Fglm-member-db-events.git Updates to the ical feed for the events Working with a feed validator to get rid of errors. VEVENT needs ORGANIZER invalid date times Needed Z at the end. --- diff --git a/index.php b/index.php index 9a03a9c..9f0df01 100644 --- 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.11 + * Version: 1.2.12 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -20,7 +20,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.2.11 + * @version 1.2.12 */ /* @@ -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.11'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.12'); 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. diff --git a/models/front/events/icalFeed.php b/models/front/events/icalFeed.php index 18c459d..7a184dd 100644 --- a/models/front/events/icalFeed.php +++ b/models/front/events/icalFeed.php @@ -88,7 +88,7 @@ class GlmMembersFront_events_icalFeed extends GlmMembersFront_events_baseAction $event = $this->getModelEventData($eventId); $this->postAddRecurrences = false; $icalHeader = <<icalDateFormat($event['created']), + $event['contact_name'], + $this->icalDateFormat($event['created']['timestamp']), $this->icalDateFormat($event['starting_timestamp']), $this->icalDateFormat($event['starting_timestamp']), $this->icalDateFormat($event['ending_timestamp']), @@ -248,7 +250,7 @@ EOD; */ public function icalDateFormat($datetime) { - return date('Ymd\THis', $datetime); + return date('Ymd\THis\Z', $datetime); } /**