I am creating YouTube
live broadcast using API explorer everything is working fine but Snippet.scheduledStartTime
is not working fine.
My time zone is +05:00 and country is Pakistan.
I want to schedule event at 2019-01-18 04:50 PM
. I have set the Snippet.scheduledStartTime
to 2019-01-18T11:50:00.000Z
but on event page it shows Starts January 18, 2019 at 3:50 AM (PST)
when I click edit it shows wrong country and time zone like that United States (GMT -08:00) Pacific
I want to use javascript
or php
client libraries.
Please let me know how I can fix it?
Here is my php code
$broadcastSnippet = new Google_Service_YouTube_LiveBroadcastSnippet();
$broadcastSnippet->setTitle('New Test Broadcast');
$broadcastSnippet->setScheduledStartTime('2019-01-18T11:50:00.000Z');