Fix time input of from/to field