date pased to rest api failing - fixed