From b084936ad9a1e5d7edfcfeb3495b997cb2fe368b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 14 Sep 2010 18:47:12 -0500 Subject: Ensure consistent date formatting everywhere Set up a default DATE_FORMAT in settings.py and use it everywhere we do the '|date' template filter rather than hardcoding the value in the template. This also fixes a regression with news date/time now that we changed the field to store both date and time. Signed-off-by: Dan McGee --- templates/packages/details.html | 2 +- templates/packages/group_details.html | 2 +- templates/packages/groups.html | 2 +- templates/packages/search.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/packages') diff --git a/templates/packages/details.html b/templates/packages/details.html index 0bc9f40f..f84b85ef 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -144,7 +144,7 @@

Versions Elsewhere

{{ pkg.build_date }} UTC Last Updated: - {{ pkg.last_update|date:"Y-m-d" }} + {{ pkg.last_update|date }} diff --git a/templates/packages/group_details.html b/templates/packages/group_details.html index f15efaac..df9c5e96 100644 --- a/templates/packages/group_details.html +++ b/templates/packages/group_details.html @@ -29,7 +29,7 @@

Details for group {{ groupname }} - {{ arch.name }}

{{ pkg.pkgver }}-{{ pkg.pkgrel }} {% endif %} {{ pkg.pkgdesc }} - {{ pkg.last_update|date:"Y-m-d" }} + {{ pkg.last_update|date }} {% endfor %} diff --git a/templates/packages/groups.html b/templates/packages/groups.html index a472e7b2..8a96b7e3 100644 --- a/templates/packages/groups.html +++ b/templates/packages/groups.html @@ -21,7 +21,7 @@

Package Groups Overview

{{ grp.name }} {{ grp.count }} - {{ grp.last_update|date:"Y-m-d" }} + {{ grp.last_update|date }} {% endfor %} diff --git a/templates/packages/search.html b/templates/packages/search.html index e11e9094..2aa82af1 100644 --- a/templates/packages/search.html +++ b/templates/packages/search.html @@ -102,7 +102,7 @@

Package Search

{{ pkg.pkgver }}-{{ pkg.pkgrel }} {% endif %} {{ pkg.pkgdesc }} - {{ pkg.last_update|date:"Y-m-d" }} + {{ pkg.last_update|date }} {% endfor %} -- cgit v1.2.3-54-g00ecf