无法为新的日历事件设置时区

时间:2019-06-08 09:54:27

标签: node.js exchangewebservices

我正在为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"
                            },
                        }
                      }
                    }
                 }
            };

0 个答案:

没有答案