Given a instance of Java's TimeZone class, how do I convert to Microsoft EWS JAva API's microsoft.exchange.webservices.data.property.complex.time.TimeZoneDefinition
? Specifically, I am using to setStartTimeZone and setEndTimeZone of an appointment in Exchange
Asked
Active
Viewed 733 times
1

pathikrit
- 32,469
- 37
- 142
- 221
1 Answers
1
Ah, I found it in their new 2.0 API:
import java.util.TimeZone
import microsoft.exchange.webservices.data.property.complex.time.{OlsonTimeZoneDefinition, TimeZoneDefinition}
implicit def javaToEwsTimeZone(tz: TimeZone): TimeZoneDefinition = new OlsonTimeZoneDefinition(tz)

pathikrit
- 32,469
- 37
- 142
- 221