convert to proper time db object, get rid of the 'str' messes

This commit is contained in:
2022-11-17 17:53:19 -05:00
parent ce1e8ed68c
commit f27749009c
5 changed files with 7 additions and 10 deletions

View File

@@ -2,9 +2,8 @@
{% block content %}
<span><h1>{% block title %} Edit Event {% endblock %}</h1></span>
{% set convertedTime = datetime.strptime(event.period.periodTime, "%H:%M:%S") %}
<p>
<b>Period {{ event.period.period }}</b> <br> Time: {{ convertedTime.strftime("%I:%M %p") }}
<b>Period {{ event.period.period }}</b> <br> Time: {{ event.period.periodTime.strftime("%I:%M %p") }}
</p>
{% if event.task_id != None %}
<p>