Add a default datetime format

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-07-03 18:56:05 -05:00
parent fa65115afc
commit 1bcb2b7ed0
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@
# Default date format in templates for 'date' filter
DATE_FORMAT = 'Y-m-d'
DATETIME_FORMAT = 'Y-m-d H:i'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.

View File

@ -144,7 +144,7 @@ <h4>Versions Elsewhere</h4>
<td>{% with pkg.packager as pkgr %}{% if pkgr %}{% userpkgs pkgr %}{% else %}{{ pkg.packager_str }}{% endif %}{% endwith %}</td>
</tr><tr>
<th>Build Date:</th>
<td>{{ pkg.build_date }} UTC</td>
<td>{{ pkg.build_date|date:"DATETIME_FORMAT" }} UTC</td>
</tr><tr>
<th>Last Updated:</th>
<td>{{ pkg.last_update|date }}</td>