summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/templates/index.html4
-rw-r--r--web/views.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/web/templates/index.html b/web/templates/index.html
index 5f2150b..013ef3f 100644
--- a/web/templates/index.html
+++ b/web/templates/index.html
@@ -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>
diff --git a/web/views.py b/web/views.py
index 0009739..7331b4d 100644
--- a/web/views.py
+++ b/web/views.py
@@ -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()])
}