发布于 2018-06-15 10:57:57
使用默认的日历时区是使用祖鲁时区,这意味着它“与协调的世界时间( UTC )没有任何偏移”- +8 UTC,这类东西。
来自事件:插入“尝试-it”的样本
{
"end": {
"dateTime": "2018-06-15T15:00:00Z"
},
"start": {
"dateTime": "2018-06-15T14:00:00Z"
},
"description": "test"
}但是,如果反过来,您想要使用特定的时区,删除Z并添加timezone属性
{
"end": {
"dateTime": "2018-06-15T15:00:00",
"timeZone": "Singapore"
},
"start": {
"dateTime": "2018-06-15T14:00:00",
"timeZone": "Singapore"
},
"description": "Singapore"
}希望这个小样本能帮上忙。
https://stackoverflow.com/questions/50858348
复制相似问题