Due Date is off by one day when filtering
One answer
Hello Robert,
it makes a long time I wanted to answer this one - but due to workload...
So, sorry for the delay.
Though I can not answer our question, I debugged the code and tried to query on due date "today" and "tomorrow".
Today: we create a time span from - date today - from 00:00:00.0 to 23:59:59.999
with a calendar created in Client's time zone (in your case, your time zone, in my case, Europe / Paris)
Tomorrow: same but with date set to tomorrow - but same time span
Now - when you - as a WebClient - sets the due date to tomorrow 12PM - noon - we store this values based on your Client / context time zone and convert to zulu time.
Ex: for me, Europe / Paris, my context time zone is GMT + 2
So if I set due date to tomorrow 12PM, it will be stored to tomorrow 10 AM GMT - zulu
Now I don't know what is your time zone - but you may check what is the value of due date that you set using Firefox and Firebug.
1 - set a due date to to tomorrow 12PM - noon
2 - save
3 - open Firebug - net tab
4 - re-load the work item
5 - expand the answer for the getWorkItemDTO2 call
Not sure it helps right now, but we'll find an explanation.
Eric