mirror of
https://github.com/django/django.git
synced 2025-09-19 08:49:57 +00:00
Updated a few localization formats to stop the changes done in r17473 from breaking the tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8ae02fde2b
commit
c1acda6d8f
21 changed files with 43 additions and 44 deletions
|
@ -147,7 +147,7 @@ class DateFormat(TimeFormat):
|
|||
def e(self):
|
||||
"Timezone name if available"
|
||||
try:
|
||||
if self.data.tzinfo:
|
||||
if hasattr(self.data, 'tzinfo') and self.data.tzinfo:
|
||||
# Have to use tzinfo.tzname and not datetime.tzname
|
||||
# because datatime.tzname does not expect Unicode
|
||||
return self.data.tzinfo.tzname(self.data) or ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue