summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--settings.py1
-rw-r--r--templates/packages/details.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/settings.py b/settings.py
index e0d1b1a2..5cca6047 100644
--- a/settings.py
+++ b/settings.py
@@ -32,6 +32,7 @@ SITE_ID = 1
# 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.
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 68016501..7972b9ab 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -144,7 +144,7 @@
<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>