display hours and minutes in form
change type from_time, to_time to be time