title: round time using wtforms in python
body: <p>I'm using wtforms in python, and everything is working fine, but I want to round the TimeFiled to hour only and keep the minutes in 00. For example 14:00, 15:00, so the user can choose only hour, not minutes.</p>
  <hr />
  <h2>My forms.py:</h2>
  <pre><code>    class DateForm(FlaskForm):
          name = StringField(&quot;Nombre&quot;, validators=[DataRequired()])
          email = StringField(&quot;Email&quot;, validators=[DataRequired()])
          date = DateField(&quot;Fecha&quot;, validators=([InputRequired(), DataRequired()]))
          hour = TimeField(&quot;Hora&quot;, validators=([InputRequired(), DataRequired()]))
          submit = SubmitField(&quot;Agendar cita&quot;)
  </code></pre>
  <hr />
  <h2>my appointment.html:</h2>
  <pre><code>     {{ form.csrf_token() }}
       {{ wtf.quick_form(form, novalidate=True, button_map={&quot;submit&quot;: &quot;primary&quot;}) }}
        {% with messages = get_flashed_messages() %}
        {% if messages %}
          {% for message in messages %}
           &lt;p style=&quot;color:red&quot;&gt;{{ message }}&lt;/p&gt;
          {% endfor %}
        {% endif %}
      {% endwith %}
  </code></pre>
  <hr />
  <p>This is how it looks like now:
  <a href="https://i.stack.imgur.com/VN8qV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VN8qV.png" alt="enter image description here" /></a>
  How can I accomplish this?</p>