Commit 7892fd74 by Don Mitchell

Remove extraneous test for already handled edge case

parent db59acaa
......@@ -12,7 +12,7 @@ def get_default_time_display(dt, show_timezone=True):
if dt is None:
return ""
timezone = ""
if dt is not None and show_timezone:
if show_timezone:
if dt.tzinfo is not None:
try:
timezone = " " + dt.tzinfo.tzname(dt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment