我正在为nodeJS项目使用“ node-ews” npm。创建会议请求以阻止会议室的非常简单的脚本。
一切正常,时区部分除外。这是EWS Args的相关部分。我将时区指定为args的一部分,但从未应用。
const ewsArgs = {
"attributes": {
"SendMeetingInvitations": "SendToAllAndSaveCopy"
},
"SavedItemFolderId": {
"DistinguishedFolderId": {
"attributes": {
"Id": "calendar"
}
}
},
"Items": {
"CalendarItem": {
"Subject": "Meeting Title Example",
"Body": {
"BodyType": "Text",
"text": "Meeting Example"
},
"Start": meetingStartTime,
"End": meetingEndTime,
"IsAllDayEvent" : "false",
"LegacyFreeBusyStatus" : "Busy",
"RequiredAttendees": {
"Attendee": [
{ "Mailbox" : { "EmailAddress" : "CONF_96858@example.com" } }
]
},
"TimeZoneContext": {
"TimeZoneDefinition": {
"attributes": {
"Id": "Singapore Standard Time",
"StartTimeZone": "Singapore Standard Time",
"EndTimeZone": "Singapore Standard Time"
},
}
}
}
}
};