diff options
| author | Jannis Leidel <jannis@leidel.info> | 2012-02-10 01:13:29 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2012-02-10 01:13:29 +0000 |
| commit | c1acda6d8f276dda9a962186e028c396a5a2e53c (patch) | |
| tree | 9c3065c4e8057255dcfd443a551850bfbacbd90a /django/utils/dateformat.py | |
| parent | 8ae02fde2b2434e80dea44c9f28461fe8cb585c9 (diff) | |
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
Diffstat (limited to 'django/utils/dateformat.py')
| -rw-r--r-- | django/utils/dateformat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 81c2d87f91..1b2dd57fe7 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -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 "" |
