summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-07-04 01:56:05 +0200
committerDan McGee <dan@archlinux.org>2011-07-05 16:45:08 +0200
commit1bcb2b7ed0bdb11ea3b22cdbc93192b4259303d5 (patch)
treee91c7cdf4ccc25eb63ff5fea0f044aeb62f6d92c
parentfa65115afccc612dd902b6324069a0b312f6a0f6 (diff)
downloadarchweb-1bcb2b7ed0bdb11ea3b22cdbc93192b4259303d5.tar.gz
archweb-1bcb2b7ed0bdb11ea3b22cdbc93192b4259303d5.tar.xz
Add a default datetime format
Signed-off-by: Dan McGee <dan@archlinux.org>
-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 e0d1b1a..5cca604 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 6801650..7972b9a 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>