简体   繁体   English

Office365 api与时区的问题

[英]Office365 api issue with timezone

We create calendar events with php sdk ( https://github.com/microsoftgraph/msgraph-sdk-php ) 我们使用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'
                ],
….

But when we open appointment in desktop time zone always show UTC. 但是当我们在桌面时区打开约会时总是显示UTC。 Why ? 为什么? and how to fix it ? 以及如何解决它?

Outlook screenshot Outlook截图

I believe you will need to send these values without the time zone offset. 我相信你需要在没有时区偏移的情况下发送这些值。 In other words, the dateTime should look like: '2019-04-02T12:30:00' 换句话说,dateTime应如下所示: '2019-04-02T12:30:00'

Also, while the documentation states that both IANA and Windows time zones are supported, at least one other person has reported it not working with IANA zones . 此外,虽然文档声明支持IANA和Windows时区, 但至少有一个人报告说它不与IANA区域合作 If this is indeed the case, then the equivalent Windows time zone ID would be 'GMT Standard Time' . 如果确实如此,那么等效的Windows时区ID将是'GMT Standard Time' Hopefully it does support either, but you could try. 希望它也支持,但你可以尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM