我正在使用Google Calendar API v3(C#)将事件插入用户日历。我正在发送这样的事件。
{
"AnyoneCanAddSelf":null,
"Attendees":null,
"AttendeesOmitted":null,
"ColorId":null,
"CreatedRaw":null,
"Created":null,
"Creator":null,
"Description":"Electrolysis 1",
"End":{
"Date":null,
"DateTimeRaw":"2020-09-16T11:15:00.000Z",
"DateTime":"2020-09-16T11:15:00.0000000+00:00",
"TimeZone":"Europe/London",
"ETag":null,
"_typeTag":"EventDateTime"
},
"EndTimeUnspecified":null,
"ETag":null,
"ExtendedProperties":null,
"Gadget":null,
"GuestsCanInviteOthers":null,
"GuestsCanModify":null,
"GuestsCanSeeOtherGuests":null,
"HangoutLink":null,
"HtmlLink":null,
"ICalUID":null,
"Id":null,
"Kind":null,
"Location":null,
"Locked":null,
"Organizer":null,
"OriginalStartTime":null,
"PrivateCopy":null,
"Recurrence":null,
"RecurringEventId":null,
"Reminders":null,
"Sequence":null,
"Source":null,
"Start":{
"Date":null,
"DateTimeRaw":"2020-09-16T11:00:00.000Z",
"DateTime":"2020-09-16T11:00:00.0000000+00:00",
"TimeZone":"Europe/London",
"ETag":null,
"_typeTag":"EventDateTime"
},
"Status":null,
"Summary":"Ann Smith",
"Transparency":null,
"UpdatedRaw":null,
"Updated":null,
"Visibility":null
}
当该事件显示在Google日历中时,它显示在中午12点,而不是预期的上午11点。我假设它与时区有关,但日历时区与我所经过的时区相同。
以下是Google日历中设置的时区的屏幕截图。