Converts work time and home time input fields to time type