Title: Timezone issues
Last modified: September 9, 2020

---

# Timezone issues

 *  Resolved [Andrei G.](https://wordpress.org/support/users/27shutterclicks/)
 * (@27shutterclicks)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/timezone-issues-3/)
 * Hi, I am having issues with the start time of every meeting I create using this
   plugin.
 * After selecting the correct timezone and start time of the meeting when adding
   a new meeting in WordPress, it gets created on Zoom using a different time.
 * The time difference is equal to the timezone difference – in this case GMT -4.
   So if I create a meeting with a start time of 4PM, it gets created on Zoom with
   a start time of 8PM.
 * My WordPress timezone setting is set correctly to America/New York which right
   now is GMT -4.
 * Additionally, I also have my PHP timezone setting set to: date_default_timezone_set(“
   America/New_York”);
 * Basically, my server already functions with the New York timezone (I have other
   plugins and logic on the site that requires this).
 * Any ideas on how to correct the timezone difference issue with your plugin? I
   tried looking for timezone filters but couldn’t find any.
 * Thanks.

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

 *  Thread Starter [Andrei G.](https://wordpress.org/support/users/27shutterclicks/)
 * (@27shutterclicks)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/timezone-issues-3/#post-13384780)
 * I kept poking around the plugin and figured out how to fix it (for my specific
   situation), by hooking into the appropriate filters of \includes\api\class-zvc-
   zoom-api-v2.php plugin file.
 *     ```
       //hook for fixing the Zoom meeting start time in Video Conferencing with Zoom plugin
       add_filter( 'vczapi_createAmeeting', "zoom_timezone_fix");
       add_filter( 'vczapi_updateMeetingInfo', "zoom_timezone_fix");
   
       function zoom_timezone_fix( $meetingInfoArray ){
   
           //get the UTC/GMT start time/date originally set by the plugin
           $start_time = $meetingInfoArray["start_time"]; //format received is "Y-m-d\TH:i:s" ("2020-09-09T13:00:00")
   
           //create new DateTime object set to UTC timezone from the original start time/date
           $start_time = new DateTime($start_time, new DateTimeZone('UTC'));
   
           //use DateTime object to automatically calculate hour difference based on desired timezone
           $start_time->setTimezone(new DateTimeZone('America/New_York'));
   
           //update the meeting info array with the adjusted time in the original format
           $meetingInfoArray["start_time"] = $start_time->format("Y-m-d\TH:i:s");
   
           //return meeting info array
           return $meetingInfoArray;
   
       } 
       ```
   
 *  Thread Starter [Andrei G.](https://wordpress.org/support/users/27shutterclicks/)
 * (@27shutterclicks)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/timezone-issues-3/#post-13450149)
 * Although the code above worked to fix the timezone issue, there is still an issue
   with this as the WP admin side still shows the incorrect start date / time for
   the meeting.
 * Any ideas on how to deal with this are welcome.

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

The topic ‘Timezone issues’ is closed to new replies.

 * ![](https://ps.w.org/video-conferencing-with-zoom-api/assets/icon-128x128.png?
   rev=3133950)
 * [Video Conferencing with Zoom](https://wordpress.org/plugins/video-conferencing-with-zoom-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/video-conferencing-with-zoom-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/video-conferencing-with-zoom-api/)
 * [Active Topics](https://wordpress.org/support/plugin/video-conferencing-with-zoom-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/video-conferencing-with-zoom-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/video-conferencing-with-zoom-api/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [Andrei G.](https://wordpress.org/support/users/27shutterclicks/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/timezone-issues-3/#post-13450149)
 * Status: resolved