From a6b6c6e17129379fa1f9ffce1ed7eaaa5d6f1127 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 9 Feb 2012 18:57:31 +0000 Subject: [PATCH] Fixed #16416 -- Added two new date formatting options for timezones and ISO week numbers. Thanks, poirier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17473 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/dateformat.py | 17 ++++++++++++++++- docs/ref/templates/builtins.txt | 10 ++++++++-- tests/regressiontests/templates/filters.py | 6 ++++++ 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index d87fb13105..81c2d87f91 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -22,7 +22,7 @@ from django.utils.translation import ugettext as _ from django.utils.encoding import force_unicode from django.utils.timezone import is_aware, is_naive -re_formatchars = re.compile(r'(?