当我使用Microsoft Graph Explorer安排新会议时,我得到了错误的时间。
如果我打电话给qazxsw poi,我会得到我的时区:qazxsw poi。
如果我然后用有效载荷调用https://graph.microsoft.com/v1.0/me/mailboxsettings
:
"timeZone": "W. Europe Standard Time"
我按预期在Outlook中收到预定会议,但时间不正确。我进入Outlook的时间是https://graph.microsoft.com/v1.0/me/events
到{
"subject": "My event W. Europe Standard Time 3",
"start": {
"dateTime": "2019-04-02T16:01:03.353Z",
"timeZone": "W. Europe Standard Time"
},
"end": {
"dateTime": "2019-04-02T16:47:03.353Z",
"timeZone": "W. Europe Standard Time"
}
}
。
当你在结束的时候放一个18:10
时,你说时间是UTC。您需要从时间中删除时区信息,以便将其视为当地时间:
18:47