Dates are now passed to REST service correctly