I try to create event with php-sdk but setting start and end timezone not working.
$e = new Model\Event();
$e->setSubject($subject);
$start = new Model\DateTimeTimeZone();
$start->setDateTime($startDateTime);
$start->setTimeZone($startTimeZone);
$e->setStart($start);
$e->setEnd($start);
$body = new Model\ItemBody();
$body->setContentType(Model\BodyType::HTML);
$body->setContent($content);
$e->setBody($body);
But the result event is every time in UTC.
I tried:
$e->setOriginalStartTimeZone($startTimeZone);
$e->setOriginalEndTimeZone($startTimeZone);
and adding a header:
Prefer: outlook.timezone="Pacific Standard Time"
But the result is same.
On top of that when I add
$e->setReminderMinutesBeforeStart(8);
$e->setIsReminderOn(true);
The remainder is disabled. If I don't include this code the reminder is enabled 15 minutes before the event.