smart time input (fixes #10)