Creating all day event with Exchange ActiveSync calendar protocol

Hi,

you should try to set the StartTime and EndTime as if it was in local time (20150821T000000 and 20150822T000000).

Re

August 20th, 2015 4:11am

Hi,

I'm implementing Exchange ActiveSync protocol for Calendar in Android client app. I have a trouble creating all day event. Let's say that I'm creting all day event for August 21 2015. Request that I sent contains AllDay flag set to 1, StartTime/EndTime in CompacDate string as provided by the documentation, and those dates are set to midnight boundaries - so it looks like this: start -"20150821T000000Z" and end - "20150822T000000Z". When I look on the web interface of exchange calendar after the request, my event starts on 20 of August and lasts for two days to 21st, but it has flag 'AllDay' set. No matter what I try, events are created wrong on Exchange server. I checked Android defaul Calendar app - and this issue can also be seen using default android calendar app. Timezones of the calendar (in web interface settings) and client app are different, but it shouldn't matter as I use UTC timestamp for generating date string. I tried sending in local time - not working.

Weired thing is that using iOS calendar, event is created correctl. So I proxied the traffic from the device and decoded wbxml sent to exchange server with wbxml2xml utility. Below there is comparison of decoded request body and request taht I sent from my client app:

Can anyone point the problem, as it seem that I will get gray hair cracking on that ;)


  • Edited by qbasso 20 hours 41 minutes ago
Free Windows Admin Tool Kit Click here and download it now
August 20th, 2015 6:25am

Local time not working as well - already tried
August 20th, 2015 6:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics