From 57b25cd2143d95aef6a0b00e853e9f12856ebafa Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Sat, 1 Jul 2023 21:48:36 +0100 Subject: [PATCH] Formatted DataTable date to ISO-8601 for sorting --- ref-test/app/admin/templates/admin/results.html | 2 +- ref-test/app/admin/templates/admin/settings/questions.html | 2 +- ref-test/app/admin/templates/admin/tests.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ref-test/app/admin/templates/admin/results.html b/ref-test/app/admin/templates/admin/results.html index 09fb7f2..ec616bd 100644 --- a/ref-test/app/admin/templates/admin/results.html +++ b/ref-test/app/admin/templates/admin/results.html @@ -54,7 +54,7 @@ {% if entry.end_time %} - {{ entry.end_time.strftime('%d %b %Y') }} + {{ entry.end_time.strftime('%Y-%m-%d %H:%M') }} {% endif %} diff --git a/ref-test/app/admin/templates/admin/settings/questions.html b/ref-test/app/admin/templates/admin/settings/questions.html index 0dd67c8..4dafac0 100644 --- a/ref-test/app/admin/templates/admin/settings/questions.html +++ b/ref-test/app/admin/templates/admin/settings/questions.html @@ -43,7 +43,7 @@ {{ element.get_name() }} - {{ element.date.strftime('%d %b %Y %H:%M') }} + {{ element.date.strftime('%Y-%m-%d %H:%M') }} {{ element.creator.get_username() }} diff --git a/ref-test/app/admin/templates/admin/tests.html b/ref-test/app/admin/templates/admin/tests.html index f8fed5c..6daa385 100644 --- a/ref-test/app/admin/templates/admin/tests.html +++ b/ref-test/app/admin/templates/admin/tests.html @@ -33,13 +33,13 @@ {% for test in tests %} - {{ test.start_date.strftime('%d %b %y %H:%M') }} + {{ test.start_date.strftime('%Y-%m-%d %H:%M') }} {{ test.get_code() }} - {{ test.end_date.strftime('%d %b %Y %H:%M') }} + {{ test.end_date.strftime('%Y-%m-%d %H:%M') }} {% if test.time_limit == None -%}