【发布时间】:2019-08-22 06:42:44
【问题描述】:
我们使用 php sdk (https://github.com/microsoftgraph/msgraph-sdk-php) 创建日历事件
…..
'start' => [
'dateTime' =>'2019-04-02T12:30:00+01:00',
'timeZone' => 'Europe/London'
],
'end' => [
'dateTime' => '2019-04-02T13:30:00+01:00',
'timeZone' => 'Europe/London'
],
….
但是当我们在桌面时区打开约会时,总是显示 UTC。为什么 ?以及如何解决?
【问题讨论】:
-
这类时间格式称为iso时间格式,可以转换为本地时间戳
标签: php calendar timezone office365