AllanE
Forum Replies Created
-
Forum: Plugins
In reply to: [Event Registration] Add to Calendar event time incorrectSo after digging some more I came up with a solution for adding the time zone to the evr_ics.php. BUT this will only work for events taking place in one time zone unless someone creates a function to determine what time zone the event is in or the time zone data is stored and passed from database and incorporated.
This temporary solution is based on information from the following post:
https://erics-notes.blogspot.com/2013/05/fixing-ics-time-zone.htmlIn the evr_ics.php file add the block of code for your time zone. I added a block for Phoenix (with php syntax) right above the line that has “BEGIN:VEVENT\n” :
//added timezone handling 6-4-15 echo "BEGIN:VTIMEZONE\n"; echo "TZID:America/Phoenix\n"; echo "X-LIC-LOCATION:America/Phoenix\n"; echo "BEGIN:STANDARD\n"; echo "TZOFFSETFROM:-0700\n"; echo "TZOFFSETTO:-0700\n"; echo "TZNAME:MST\n"; echo "DTSTART:19700101T000000\n"; echo "END:STANDARD\n"; echo "END:VTIMEZONE\n"; //end adding time zone handling
Also change the end and start times based on your time zone.
from this
"DTEND:".date("Ymd",strtotime($end_date))."T".date("His",strtotime($end_time))."\n";
to this
echo "DTEND;TZID=America/Phoenix:".date("Ymd",strtotime($end_date))."T".date("His",strtotime($end_time))."\n";
Do the same for the start date:
echo "DTSTART;TZID=America/Phoenix:".date("Ymd",strtotime($start_date))."T".date("His",strtotime($start_time))."\n";
I hope this helps someone…
Forum: Plugins
In reply to: [Event Registration] Event widget not displaying correctlyResolved by switching from the 2012 theme to Emphasize.