TimeZone change to UTC while updating the Appointment

后端 未结 2 770
天命终不由人
天命终不由人 2021-01-19 23:35

I am using EWS 1.2 to send appointments. On creating new Appointments, TimeZone is showing properly on notification mail, but on updating the same appointment, it\'s TimeZon

2条回答
  •  一整个雨季
    2021-01-20 00:06

    You'll want to set AppointmentSchema.StartTimeZone and bind it as part of the properties object when you bind existingAppointment, as illustrated here:

    // Get an existing calendar item, requesting the Id, Start, and 
    //  StartTimeZone properties.
    PropertySet props = new PropertySet(
          AppointmentSchema.Id, 
          AppointmentSchema.Start, 
          AppointmentSchema.StartTimeZone);
    Appointment appt = Appointment.Bind(service, new ItemId("AQMkA="), props);
    

    It seems the default bound time zone is UTC.

提交回复
热议问题