Add a default datetime format
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
fa65115afc
commit
1bcb2b7ed0
@ -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.
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user