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

@@ -8,8 +8,7 @@
<div>
{% for period in periods %}
<div>
{% set convertedTime = datetime.strptime(period.periodTime, "%H:%M:%S") %}
<p><b>Period {{ period.period }}</b> <br> Time: {{ convertedTime.strftime("%I:%M %p") }} </p>
<p><b>Period {{ period.period }}</b> <br> Time: {{ period.periodTime.strftime("%I:%M %p") }} </p>
{% for event in events if event.scheduled_date == currDay and event.period == period %}
<div class="float-right"><a type="button" class="btn btn-primary" href="/event/edit/{{ event.id }}">Edit</a></div>
{% if event.task_id != None %}