Add missing error message for 'invalid' datetimes