Properly format dates in templates

This commit is contained in:
Adam Goldsmith 2020-12-08 16:04:03 -05:00
parent 7cdf6e961f
commit a005ab151b
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
{% if tasks %}
<ul>
{% for task in tasks %}
<li><a href="{{ task.get_absolute_url }}">{{ task.name }}</a> - last at {{ task.last_event.date }}, next at {{ task.next_recurrence }} </li>
<li><a href="{{ task.get_absolute_url }}">{{ task.name }}</a> - last at {{ task.last_event.date|date }}, next at {{ task.next_recurrence|date }} </li>
{% endfor %}
</ul>
{% else %}

View File

@ -1,6 +1,6 @@
<h1><a href="{{ tool.get_absolute_url }}">{{ tool }}</a></h1>
<h2> {{ task.name }} </h2>
<p> Next scheduled time: {{ task.next_recurrence }} </p>
<p> Next scheduled time: {{ task.next_recurrence|date }} </p>
<p> Overdue: {{ task.is_overdue }} </p>
<form method="post">