OfficeDev / ews-managed-api

Other
585 stars 317 forks source link

Time Zone is in UTC on Replies #277

Open grex84 opened 2 years ago

grex84 commented 2 years ago

It seems that whenever a reply is created or more specifically when an existing EmailMessage is loaded (.Load()), the body will show all dates in UTC and will ignore the time zone property set in the Exchangeservice initialization. I can't be certain as to when this issue began but does anyone have any ideas on how this can be fixed? My exchange server (2010) and the webserver where this API is being run from are in "Eastern Standard Time" and the Exchangeservice time zone initialization can be seen below:

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2,TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time"));