Remove the setTime on from and to dates
Change js to set date offset on to date