Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

StartTimeZone required when setting the Start, End, IsAllDayEvent, or Recurrence properties.

$
0
0

I am trying to schedule a meeting with Exchange 2007 SP1 using EWS Java API 1.1.3.  I created my ExchangeService object like:

s = new ExchangeService(ExchangeVersion.Exchange2007_SP1)

However when I run my code to schedule a meeting I get the error mentioned in the topic.  So I tried to set the startTimeZone:

mtg.setStartTimeZone(new TimeZoneDefinition(){{setId("UTC");}});
mtg.setStart(stime);
mtg.setEnd(etime);

And get an error saying the timezone is invalid.  I read in another thread that all the timezonedefinitions are invalid and not to use setStartTimeZone.  What do I need to do to get my code to work?  Thanks in advance.


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>