When remote executing a query send the time conditions as well

Close #820