warns you if you input an invalid time (fixes #285).