Creating all day event with Exchange ActiveSync calendar protocol RRS feed

  • Question

  • 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 Thursday, August 20, 2015 10:50 AM
    Thursday, August 20, 2015 6:25 AM

All replies