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 --- settings.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'settings.py') diff --git a/settings.py b/settings.py index e1c9e85..3a7db39 100644 --- a/settings.py +++ b/settings.py @@ -33,6 +33,9 @@ USE_I18N = False # calendars according to the current locale USE_L10N = False +# Default date format in templates for 'date' filter +DATE_FORMAT = 'Y-m-d' + # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". -- cgit v1.2.3-24-g4f1b