From 94b82abba99cf628e3ae3fb4b50d056095587cdd Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 27 Jul 2017 11:21:32 -0400 Subject: [PATCH] Update icalfeed with timezone Setting timezone to detroit. --- index.php | 6 +++--- models/front/events/icalFeed.php | 27 +++++++++++++++++++++++---- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 402527c..d4187f6 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.6.54 + * Version: 1.6.55 * 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.6.54 + * @version 1.6.55 */ /* @@ -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.6.54'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.55'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.2'); // 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 37a0c79..2f9d909 100644 --- a/models/front/events/icalFeed.php +++ b/models/front/events/icalFeed.php @@ -50,6 +50,25 @@ PRODID:-//Gaslight Media Inc//Gaslight Events Calendar v2.0//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:PUBLISH +X-WR-TIMEZONE:America/Detroit +BEGIN:VTIMEZONE +TZID:America/Detroit +X-LIC-LOCATION:America/Detroit +BEGIN:DAYLIGHT +TZOFFSETFROM:-0500 +TZOFFSETTO:-0400 +TZNAME:EDT +DTSTART:19700308T020000 +RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU +END:DAYLIGHT +BEGIN:STANDARD +TZOFFSETFROM:-0400 +TZOFFSETTO:-0500 +TZNAME:EST +DTSTART:19701101T020000 +RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU +END:STANDARD +END:VTIMEZONE EOD; $icalFooter = <<