def process_formdata(self, valuelist):
        if valuelist:
            date_str = u' '.join(valuelist)

            if date_str.strip():
                for format in self.formats:
                    try:
                        timetuple = time.strptime(date_str, format)
                        self.data = datetime.time(timetuple.tm_hour,
                                                  timetuple.tm_min,
                                                  timetuple.tm_sec)
                        return
                    except __HOLE__:
                        pass

                raise ValueError(gettext('Invalid time format'))
            else:
                self.data = None
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/form/fields.py/TimeField.process_formdata