isValidTime restored to original way