Update icalfeed with timezone
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 27 Jul 2017 15:21:32 +0000 (11:21 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 27 Jul 2017 15:21:32 +0000 (11:21 -0400)
Setting timezone to detroit.

index.php
models/front/events/icalFeed.php

index 402527c..d4187f6 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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.
index 37a0c79..2f9d909 100644 (file)
@@ -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 = <<<EOD
 \nEND:VCALENDAR
@@ -106,10 +125,10 @@ EOD;
         $eventTemplateStart = <<<EOD
 \r\nBEGIN:VEVENT
 UID:%d@%s%s
-CREATED:%s
-DTSTAMP:%s
-DTSTART:%s
-DTEND:%s
+CREATED;TZID=America/Detroit:%s
+DTSTAMP;TZID=America/Detroit:%s
+DTSTART;TZID=America/Detroit:%s
+DTEND;TZID=America/Detroit:%s
 %s
 SUMMARY:%s
 STATUS:CONFIRMED