From 1cf1bba356ee6f741089a4d63344f718d74acc2f Mon Sep 17 00:00:00 2001 From: Dominic DiTaranto Date: Tue, 29 Oct 2024 12:22:12 -0400 Subject: fixing times --- web/templates/index.html | 4 ++-- web/views.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'web') 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 @@ {{event.name}} {{event.responses}} - {{event.start_date}} - {{event.end_date}} + {{event.start_date|date:"m/d/Y"}} + {{event.end_date|date:"m/d/Y"}} {% endfor %} 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()]) } -- cgit v1.2.3-70-g09d2