fixing times

This commit is contained in:
Dominic DiTaranto 2024-10-29 12:22:12 -04:00
parent 6a895e489a
commit 1cf1bba356
2 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@
<tr>
<td><a href="{% url 'event' event.id %}">{{event.name}}</a></td>
<td>{{event.responses}}</td>
<td>{{event.start_date}}</td>
<td>{{event.end_date}}</td>
<td>{{event.start_date|date:"m/d/Y"}}</td>
<td>{{event.end_date|date:"m/d/Y"}}</td>
</tr>
{% endfor %}
</tbody>

View File

@ -16,8 +16,8 @@ def index(request):
data = {
'id': active_event.id,
'name': active_event.name,
'start_date': active_event.start_date,
'end_date': active_event.end_date,
'start_date': active_event.start_date.date(),
'end_date': active_event.end_date.date(),
'responses': ', '.join([x.user.username for x in active_event.availability_set.all()])
}