Title: AllanE's Replies | WordPress.org

---

# AllanE

  [  ](https://wordpress.org/support/users/allane/)

 *   [Profile](https://wordpress.org/support/users/allane/)
 *   [Topics Started](https://wordpress.org/support/users/allane/topics/)
 *   [Replies Created](https://wordpress.org/support/users/allane/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/allane/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/allane/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/allane/engagements/)
 *   [Favorites](https://wordpress.org/support/users/allane/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Event Registration] Add to Calendar event time incorrect](https://wordpress.org/support/topic/add-to-calendar-event-time-incorrect/)
 *  Thread Starter [AllanE](https://wordpress.org/support/users/allane/)
 * (@allane)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/add-to-calendar-event-time-incorrect/#post-6200184)
 * 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:
    [http://erics-notes.blogspot.com/2013/05/fixing-ics-time-zone.html](http://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…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Event Registration] Event widget not displaying correctly](https://wordpress.org/support/topic/event-widget-not-displaying-correctly/)
 *  Thread Starter [AllanE](https://wordpress.org/support/users/allane/)
 * (@allane)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/event-widget-not-displaying-correctly/#post-6147353)
 * Resolved by switching from the 2012 theme to Emphasize.

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