Release date set via EWS is incorrect in popup reminder

I'm having problems using EWS with tasks and reminders, in particular with a date.

When I run my code as shown below, the task is added to my Exchange account and I see it in Outlook. All the data in it also looks great. However, if I point out that you have a reminder of the task, then the deadline that he shows is very wrong.

Typically, 17 hours in the future, but the screen shot presented shows that it will be 19 hours in the future. It is very strange to me that if I open the task, the deadline will look fine, but a reminder that this should be good in the future. Any ideas?

Screenshot: http://s970.photobucket.com/albums/ae187/paulehn/?action=view¤t=ewstask.jpg

ExchangeVersion exchVersion = new ExchangeVersion();
exchVersion = ExchangeVersion.Exchange2007_SP1;
ExchangeService service = new ExchangeService(exchVersion);
service.UseDefaultCredentials = true;
service.Url = new Uri("https://mail.domain.com.au/ews/exchange.asmx");

Task task = new Task(service);
task.Subject = "Subject";
task.Body = new MessageBody(BodyType.HTML, "Body");
task.StartDate = DateTime.Today;
task.DueDate = DateTime.Now.AddHours(2);
task.ReminderDueBy = DateTime.Now;
task.ReminderMinutesBeforeStart = 15;
task.IsReminderSet = true;
task.Save();
+3

Source: https://habr.com/ru/post/1742052/


All Articles