mirror of
https://github.com/django/django.git
synced 2025-09-19 00:40:11 +00:00
Replaced an antiquated pattern.
Thanks Lennart Regebro for pointing it out.
This commit is contained in:
parent
b1bfd9630e
commit
9c487b5974
30 changed files with 49 additions and 43 deletions
|
@ -234,7 +234,7 @@ class DateFormat(TimeFormat):
|
|||
|
||||
def T(self):
|
||||
"Time zone of this machine; e.g. 'EST' or 'MDT'"
|
||||
name = self.timezone and self.timezone.tzname(self.data) or None
|
||||
name = self.timezone.tzname(self.data) if self.timezone else None
|
||||
if name is None:
|
||||
name = self.format('O')
|
||||
return six.text_type(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue