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/news/list.html | 2 +- templates/news/view.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/news') diff --git a/templates/news/list.html b/templates/news/list.html index 258456a5..14ba79b6 100644 --- a/templates/news/list.html +++ b/templates/news/list.html @@ -28,7 +28,7 @@ {% for item in news_list %} - {{ item.postdate }} + {{ item.postdate|date }} {{ item.title }} {{ item.author.get_full_name }} diff --git a/templates/news/view.html b/templates/news/view.html index a7c25a43..1c92fe78 100644 --- a/templates/news/view.html +++ b/templates/news/view.html @@ -16,7 +16,7 @@ {% endif %} - +
{{ news.content|markdown }}
-- cgit v1.2.2