When using the
GoToTraining API and creating a new training via POST, the session hour in the plataform it's 5 hours less.
My account TimeZone it's GMT-06:00 Mexico City and in the POST data the timeZone of the session it's the same.
I have already "solved" this problem with a code that adds 5 hours, but when I'm creating a training at 19:00 hrs or more, then the day is wrong or the API callbacks says that an internal error have ocurred.
$data = json_encode(array('name'=>$groupName,
'description'=>$comment,
'timeZone'=>'America/Mexico_City',
'times'=>$times,
'registrationSettings'=>array('disableConfirmationEmail'=>false,'disableWebRegistration'=>false),
'organizers'=>array($this->organizerKey)
));
that's the array that I'm using. Thanks everybody.