Properly format dates in templates
This commit is contained in:
parent
7cdf6e961f
commit
a005ab151b
@ -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 %}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user