stevenhong
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Shortcode] Help with category headingThank you. I switched it around.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Timezone issuesI didn’t end up trying the 5.3.6.3. I did however, modify the code in a template file so that it is working as expected. I just added “hard code” to explicitly state the timezone as central time (chicago).
Here’s the code I added:
echo “BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
PRODID:TCCGOSPEL
X-FROM-URL:http://www.tccgospel.org/events.ics
X-WR-RELCALID:TccGospel
X-WR-CALNAME:TccGospel
BEGIN:VTIMEZONE
TZID:America/Chicago
X-LIC-LOCATION:America/Chicago
BEGIN:DAYLIGHT
TZOFFSETFROM:-0600
TZOFFSETTO:-0500
TZNAME:CDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0500
TZOFFSETTO:-0600
TZNAME:CST
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE
“;And the code that I changed:
$dateStart = ‘;TZID=America/Chicago:’.date(‘Ymd\THis\Z’,$EM_Event->start);
$dateEnd = ‘;TZID=America/Chicago:’.date(‘Ymd\THis\Z’,$EM_Event->end);Again, I know that it is hard coded, but we’re not moving out of the central time zone, and it works.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Timezone issuesOh, WP 3.5.1, EM 5.3.6.1