From b084936ad9a1e5d7edfcfeb3495b997cb2fe368b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 14 Sep 2010 18:47:12 -0500 Subject: 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 --- templates/public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/public/index.html') diff --git a/templates/public/index.html b/templates/public/index.html index 72f0b12b..5a87787d 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -46,7 +46,7 @@

Latest News ({{ news.title }}

-

{{ news.postdate }}

+

{{ news.postdate|date }}

{{ news.content|markdown|truncatewords_html:75 }}
{% endfor %} -- cgit v1.2.3-54-g00ecf