diff --git a/server.py b/server.py index 59197bc27bb54d989514b8c59f61883703057fdc..b3facfa046e93e1f117eacf646fe4f5cb4479dbf 100755 --- a/server.py +++ b/server.py @@ -484,7 +484,6 @@ def new_protocol(): flash("Dir fehlen die nötigen Zugriffsrechte.", "alert-error") return redirect(request.args.get("next") or url_for("index")) protocol = Protocol(protocoltype_id=protocoltype.id) - print(form.start_time.data) form.populate_obj(protocol) if form.start_time.data is None: protocol.start_time = protocoltype.usual_time diff --git a/templates/protocol-show.html b/templates/protocol-show.html index 974bc67e47e3b84ea47c7dac029d3743816a6ad0..2314e88ba27ad3466aef95bd12dd0d3cbd898263 100644 --- a/templates/protocol-show.html +++ b/templates/protocol-show.html @@ -82,7 +82,7 @@ {% endif %} {% else %} {% if protocol.date is not none %} - <p><strong>Geplant:</strong> {{protocol.date|datify_long}}, {{protocol.start_time|timify}}</p> + <p><strong>Geplant:</strong> {{protocol.date|datify_long}}, {{protocol.get_time()|timify}}</p> {% endif %} {% for meta in protocol.metas %} <p><strong>{{meta.name}}:</strong> {{meta.value}}</p>