diff options
author | Dominic DiTaranto <domdit@gmail.com> | 2024-10-29 12:22:12 -0400 |
---|---|---|
committer | Dominic DiTaranto <domdit@gmail.com> | 2024-10-29 12:22:12 -0400 |
commit | 1cf1bba356ee6f741089a4d63344f718d74acc2f (patch) | |
tree | 71b0529c1b8dd618242e9656f3b1c01dc39c13dc /web | |
parent | 6a895e489a4a5eb74085b7980f293d7a24c92c92 (diff) |
fixing times
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/index.html | 4 | ||||
-rw-r--r-- | web/views.py | 4 |
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()]) } |