Changed from_to and to_time to from and time