Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter AllanE

    (@allane)

    So 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.html

    In 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…

    Thread Starter AllanE

    (@allane)

    Resolved by switching from the 2012 theme to Emphasize.

Viewing 2 replies - 1 through 2 (of 2 total)