fix bad validation logic for time strings, fixes #423