diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 00eb9fe617b..e3712175af1 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -16,7 +16,7 @@ from django.utils.tzinfo import LocalTimezone from calendar import isleap, monthrange import re, time -re_formatchars = re.compile(r'(?>> format(my_birthday, 'M') 'Jul' +>>> format(my_birthday, 'b') +'jul' >>> format(my_birthday, 'n') '7' >>> format(my_birthday, 'N')