better formatting of time input