* 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
* @package glmMembersDatabaseEventsAddOn
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.2.11
+ * @version 1.2.12
*/
/*
* 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.
$event = $this->getModelEventData($eventId);
$this->postAddRecurrences = false;
$icalHeader = <<<EOD
-BEGIN:VCALENDAR
+\nBEGIN:VCALENDAR
PRODID:-//Gaslight Media Inc//Gaslight Events Calendar v2.0/EN
VERSION:2.0
CALSCALE:GREGORIAN
$eventTemplateStart = <<<EOD
\nBEGIN:VEVENT
UID:%d@%s
+ORGANIZER:CN=%s
CREATED:%s
DTSTAMP:%s
DTSTART:%s
$eventDataStart = sprintf($eventTemplateStart,
$event['id'],
$urlHost,
- $this->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']),
*/
public function icalDateFormat($datetime)
{
- return date('Ymd\THis', $datetime);
+ return date('Ymd\THis\Z', $datetime);
}
/**