2013-01-18 2 views
2

이 질문을 웹에서 여러 번 보았지만 답변을 찾을 수 없습니다.EWS 업데이트가 UTC로 시간대를 변경합니다.

관리되는 EWS 2.0을 사용하여 약속 (모임)을 만들면 초대 이메일에 시간과 시간대가 올바르게 표시됩니다. 회의를 업데이트하면 새 초대 이메일에 시간이 UTC 시간대로 표시됩니다. UTC의 정확한 시간이지만 태평양에 표시되어야합니다.

서비스 연결을 만들 때 영역 설정을 시도했지만 초기 초대장에 UTC 및 기타 업데이트도 표시됩니다.

StartTimeZone 및 EndTimeZone 속성을 설정해 보았습니다. 수정 약속을 바인딩 할 때 해당 속성을 속성에 포함했습니다.

초대장을 보낼 때 Exchange에서 시간 형식을 지정하는 또 다른 속성이 있습니까? 다음은 업데이트를 수행하는 방법을 보여주는 코드입니다.

 Dim EWS As ExchangeService = GetEWSConnection(UserEmailAddress) 
     Dim meeting As Appointment = Appointment.Bind(EWS, New ItemId(CalendarEvent.ItemKey), New PropertySet(BasePropertySet.IdOnly, AppointmentSchema.Start, AppointmentSchema.End, AppointmentSchema.ReminderDueBy, AppointmentSchema.StartTimeZone, AppointmentSchema.EndTimeZone, AppointmentSchema.TimeZone, AppointmentSchema.Subject, AppointmentSchema.Location, AppointmentSchema.Body)) 
     Dim timeZone As TimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(LocalTimeZoneID) 
     With meeting 
      .Subject = CalendarEvent.Subject 
      .Location = CalendarEvent.Location 
      .Body = CalendarEvent.Body 
      .Start = CalendarEvent.StartTime 
      .End = CalendarEvent.EndTime 
      .StartTimeZone = timeZone 
      .EndTimeZone = timeZone 
      ' snip (removed attendee add/remove) 
      .Update(ConflictResolutionMode.AlwaysOverwrite, SendInvitationsOrCancellationsMode.SendToChangedAndSaveCopy) 
     End With 

답변

0

실망스러운 답변이지만 Exchange 버그 일 것입니다. API에 의해 노출 된 다양한 표준 시간대 속성을 어떻게 조정하더라도이 동작은 여전히 ​​발생합니다. 내가 알 수있는 한, 서버 수준의 설정은이 설정에 영향을 미칠 수 있습니다. 물론 모든 설정을 모두 빗어 먹지는 않았습니다.

필자의 경우, 추가 된 UTC 시간과 함께하는 것으로 보이는 것은 메시지가 업데이트시 원본 HTML에서 일반 텍스트 버전으로 변경된다는 것입니다. 이 버그 (http://support.microsoft.com/kb/2689810)는 수정되었지만 아직 패치를 적용하지 않았습니다. 이 버그는 다른 하나가 고쳐질 때 쓸모 없게 될 가능성이 있습니다. Exchange 서버에 업데이트를 설치하는 것이 옵션이라면 그만한 가치가있을 것입니다.

관련 문제