From d981cb4e66245bbe4c5a91e8a5d3747fcf9a6a88 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 1 Jan 2010 21:39:26 +0000 Subject: [PATCH] Fixed #7262 - Added ISO 8601 and microsecond format string to utils.dateformat. Thanks zegor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12058 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- AUTHORS | 1 + django/utils/dateformat.py | 14 +++++++++++++- docs/ref/templates/builtins.txt | 2 ++ tests/regressiontests/dateformat/tests.py | 4 ++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 9402ef2ae6..ecedce26b7 100644 --- a/AUTHORS +++ b/AUTHORS @@ -486,6 +486,7 @@ answer newbie questions, and generally made Django that much better: ymasuda@ethercube.com Jesse Young Mykola Zamkovoi + zegor Gasper Zejn Jarek Zgoda Cheng Zhang diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index b2ea71228c..13cc2c7a81 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -19,7 +19,7 @@ from django.utils.tzinfo import LocalTimezone from django.utils.translation import ugettext as _ from django.utils.encoding import force_unicode -re_formatchars = re.compile(r'(?