Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter stevenhong

    (@stevenhong)

    Oh, WP 3.5.1, EM 5.3.6.1

    agelonwl

    (@angelonwl)

    can you try dev version 5.3.6.3 which includes improved offset calculations in ical for some servers?

    Thread Starter stevenhong

    (@stevenhong)

    I 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:https://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.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Not flexible if you move somewhere else, but should work in your case ??

    Matze23

    (@matze23)

    I have a similar issue.

    Adding ics to Mac calendar time zone is correct.

    Adding ics to Google calendar wrong time zone is used.

    Using latest dev version.

    iCal: https://www.sv-luttingen.de/?ical=1

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Timezone issues’ is closed to new replies.