# Getting different times on zoom account and in API response

**URL:** <https://devforum.zoom.us/t/getting-different-times-on-zoom-account-and-in-api-response/22797>\
**Category:** API and Webhooks\
**Created:** [June 30, 2020, 7:12pm UTC](https://devforum.zoom.us/t/getting-different-times-on-zoom-account-and-in-api-response/22797 "2020-06-30T19:12:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://devforum.zoom.us/u/abdullah)\
**Post date:** [June 30, 2020, 7:12pm UTC](https://devforum.zoom.us/t/getting-different-times-on-zoom-account-and-in-api-response/22797/1 "2020-06-30T19:12:41Z")

</div>

I am getting different times on zoom account and response  
Here is my correct time 3:26 pm which is also showing same from zoom api response  
Here is Zoom Api Respnse after processing the request and getting response from zoom api which is start\_time and it is correct  
\* “uuid”:“q1PC+bqWRLCtiP19mPVYVw==”,  
\* “id”:\*\*\*\*\*\*\*\*\*\*\*,  
\* “host\_id”:“DUwi9y\_pQwaJjPV\_y3ab1Q”,  
\* “topic”:“some assets”,  
\* “type”:2,  
\* “status”:“waiting”,  
**"start\_time":“2020-07-08T15:26:00Z”,**  
\* “duration”:60,  
\* “timezone”:“Asia/Tashkent”,  
\* “created\_at”:“2020-06-30T10:28:45Z”,  
\* “start\_url”:“[https://zoom.us/s/99119947595?zak=eyJ6bV9za20iOiJ6bV9vMm0iLCJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjbGllbnQiLCJ1aWQiOiJEVXdpOXlfcFF3YUpqUFZfeTNhYjFRIiwiaXNzIjoid2ViIiwic3R5IjoxMDAsIndjZCI6ImF3MSIsImNsdCI6MCwic3RrIjoiMUJ1MW1NSU1YbV81SEMtSHVILXdIN0w0SFQteTZmUEZMSmwzeF9TM2I4MC5CZ1VzTnpKelYycE5VazlYWm14NGRFeG9kV0Z0VlVKRlREQmxhMUJ2YUc5UlpIY3dTRUZWYkVnclRUQnliejFBWVdJME9ERmxOREprTURSaU16RTRZamsxT1RobVpEUXlZV0k1T1RZME1XWTROemt6WlRrMFpEVTVPVEJpTnpreE9EVTBZekkyTWpnNE9UbGtNemcxTXdBTU0wTkNRWFZ2YVZsVE0zTTlBQU5oZHpFIiwiZXhwIjoxNTkzNTIwMTI2LCJpYXQiOjE1OTM1MTI5MjYsImFpZCI6InlNSVhIeUNCU25xVkEwMXBhWml2cFEiLCJjaWQiOiIifQ.2TPyAiITCRjwVt0rsLP54Dx5p1lC03bTCGuDPUI2iLY](https://zoom.us/s/99119947595?zak=eyJ6bV9za20iOiJ6bV9vMm0iLCJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjbGllbnQiLCJ1aWQiOiJEVXdpOXlfcFF3YUpqUFZfeTNhYjFRIiwiaXNzIjoid2ViIiwic3R5IjoxMDAsIndjZCI6ImF3MSIsImNsdCI6MCwic3RrIjoiMUJ1MW1NSU1YbV81SEMtSHVILXdIN0w0SFQteTZmUEZMSmwzeF9TM2I4MC5CZ1VzTnpKelYycE5VazlYWm14NGRFeG9kV0Z0VlVKRlREQmxhMUJ2YUc5UlpIY3dTRUZWYkVnclRUQnliejFBWVdJME9ERmxOREprTURSaU16RTRZamsxT1RobVpEUXlZV0k1T1RZME1XWTROemt6WlRrMFpEVTVPVEJpTnpreE9EVTBZekkyTWpnNE9UbGtNemcxTXdBTU0wTkNRWFZ2YVZsVE0zTTlBQU5oZHpFIiwiZXhwIjoxNTkzNTIwMTI2LCJpYXQiOjE1OTM1MTI5MjYsImFpZCI6InlNSVhIeUNCU25xVkEwMXBhWml2cFEiLCJjaWQiOiIifQ.2TPyAiITCRjwVt0rsLP54Dx5p1lC03bTCGuDPUI2iLY)”,  
\* “join\_url”:“[https://zoom.us/j/99119947595?pwd=dmNmclU0YTFtdm1zdWRRV1ZNWUl2QT09](https://zoom.us/j/99119947595?pwd=dmNmclU0YTFtdm1zdWRRV1ZNWUl2QT09)”,  
\* “password”:“8HkrzC”,  
\* “h323\_password”:“508432”,  
\* “pstn\_password”:“508432”,  
\* “encrypted\_password”:“dmNmclU0YTFtdm1zdWRRV1ZNWUl2QT09”,  
\* “settings”:{  
\* “host\_video”:false,  
\* “participant\_video”:false,  
\* “cn\_meeting”:false,  
\* “in\_meeting”:false,  
\* “join\_before\_host”:false,  
\* “mute\_upon\_entry”:false,  
\* “watermark”:false,  
\* “use\_pmi”:false,  
\* “approval\_type”:2,  
\* “audio”:“voip”,  
\* “auto\_recording”:“none”,  
\* “enforce\_login”:false,  
\* “enforce\_login\_domains”:"",  
\* “alternative\_hosts”:"",  
\* “close\_registration”:false,  
\* “registrants\_confirmation\_email”:true,  
\* “waiting\_room”:true,  
\* “registrants\_email\_notification”:true,  
\* “meeting\_authentication”:false}

But on my zoom Account it is showing different  
 ![cb0d2cceb605b4ae977b38d9de6cdf822608a3c4_2_690x129](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/97f8bde4e838648ae0f8b9a4ef44220b21284cea.png)

Here is the relevant code:  
public function createAMeeting( $data = array() ) {  
$post\_time = $data[‘start\_date’];  
$start\_time = gmdate( “Y-m-d\TH:i:s”, strtotime( $post\_time ) );  
$createAMeetingArray = array();  
if ( ! empty( $data[‘alternative\_host\_ids’] ) ) {  
if ( count( $data[‘alternative\_host\_ids’] ) \> 1 ) {  
$alternative\_host\_ids = implode( “,”, $data[‘alternative\_host\_ids’] );  
} else {  
$alternative\_host\_ids = $data[‘alternative\_host\_ids’][0];  
}  
}  
$createAMeetingArray[‘topic’] = $data[‘meetingTopic’];  
$createAMeetingArray[‘agenda’] = ! empty( $data[‘agenda’] ) ? $data[‘agenda’] : “”;  
$createAMeetingArray[‘type’] = ! empty( $data[‘type’] ) ? $data[‘type’] : 2; //Scheduled  
$createAMeetingArray[‘start\_time’] = $start\_time;  
$createAMeetingArray[‘timezone’] = $data[‘timezone’];  
$createAMeetingArray[‘password’] = ! empty( $data[‘password’] ) ? $data[‘password’] : “”;  
$createAMeetingArray[‘duration’] = ! empty( $data[‘duration’] ) ? $data[‘duration’] : 60;  
$createAMeetingArray[‘settings’] = array(  
‘join\_before\_host’ =\> ! empty( $data[‘join\_before\_host’] ) ? true : false,  
‘host\_video’ =\> ! empty( $data[‘option\_host\_video’] ) ? true : false,  
‘participant\_video’ =\> ! empty( $data[‘option\_participants\_video’] ) ? true : false,  
‘mute\_upon\_entry’ =\> ! empty( $data[‘option\_mute\_participants’] ) ? true : false,  
‘enforce\_login’ =\> ! empty( $data[‘option\_enforce\_login’] ) ? true : false,  
‘auto\_recording’ =\> ! empty( $data[‘option\_auto\_recording’] ) ? $data[‘option\_auto\_recording’] : “none”,  
‘alternative\_hosts’ =\> isset( $alternative\_host\_ids ) ? $alternative\_host\_ids : “”  
);  
return $this-\>sendRequest($createAMeetingArray);  
}  
**This is the function which i am running to create meeting**  
function Hellozoom($title,$md,$mt,&$resp=array()){  
try{

```
$z = $this->createAMeeting(
array(
‘start_date’=>date(“Y-m-d H:i:s”, strtotime($md." ".$mt)),
‘meetingTopic’=>$title,
‘timezone’=>‘Asia/Tashkent’
)
);
$resp=$z;
//print_r($z);
} catch (Exception $ex) {
echo $ex;
}
}

```

\*This post has been edited to remove any meeting / webinar IDs

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 1, 2020, 11:10pm UTC](https://devforum.zoom.us/t/getting-different-times-on-zoom-account-and-in-api-response/22797/2 "2020-07-01T23:10:34Z")

</div>

Hey @abdullah,

I have replied to your duplicate post here:

> [@Zoom Meeting Api is not implementing Meeting Start time correctly which i am passing to it in PHP](https://devforum.zoom.us/t/zoom-meeting-api-is-not-implementing-meeting-start-time-correctly-which-i-am-passing-to-it-in-php/22732/5):
>
> Hey @abdullah, If you are including the Z in the start\_time, it will be sent with GMT time and not your timezone. Try removing the Z. Thanks, Tommy

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:32pm UTC](https://devforum.zoom.us/t/getting-different-times-on-zoom-account-and-in-api-response/22797/3 "2020-08-21T22:32:40Z")

</div>

Closed on August 21, 2020, 10:32pm UTC


