diff options
author | Dan McGee <dan@archlinux.org> | 2010-09-15 01:47:12 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-09-15 01:47:12 +0200 |
commit | b084936ad9a1e5d7edfcfeb3495b997cb2fe368b (patch) | |
tree | 59b55c33255b29c9cada1f7b4921811d496304af /templates/public/index.html | |
parent | 3394a94a4019406b643341771dae057d39af73e3 (diff) | |
download | archweb-b084936ad9a1e5d7edfcfeb3495b997cb2fe368b.tar.gz archweb-b084936ad9a1e5d7edfcfeb3495b997cb2fe368b.tar.xz |
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 <dan@archlinux.org>
Diffstat (limited to 'templates/public/index.html')
-rw-r--r-- | templates/public/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/public/index.html b/templates/public/index.html index 72f0b12..5a87787 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -46,7 +46,7 @@ {% for news in news_updates %} <h4><a href="{{ news.get_absolute_url }}" title="View full article: {{ news.title }}">{{ news.title }}</a></h4> - <p class="timestamp">{{ news.postdate }}</p> + <p class="timestamp">{{ news.postdate|date }}</p> <div class="article-content">{{ news.content|markdown|truncatewords_html:75 }}</div> {% endfor %} |