]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fix for `get_timezone_name` when falling back to GMT display.
authorChristopher Lenz <cmlenz@gmail.com>
Wed, 15 Aug 2007 12:35:45 +0000 (12:35 +0000)
committerChristopher Lenz <cmlenz@gmail.com>
Wed, 15 Aug 2007 12:35:45 +0000 (12:35 +0000)
babel/dates.py

index fd6db45ada8ee44c51d1435245525baafaea7fdd..df722635c8be899d1b6b99cbdafb5209de2a306c 100644 (file)
@@ -408,7 +408,7 @@ def get_timezone_name(dt_or_tzinfo=None, width='long', uncommon=False,
     # If we have a concrete datetime, we assume that the result can't be
     # independent of daylight savings time, so we return the GMT offset
     if dt is not None:
-        return get_timezone_gmt(time, width=width, locale=locale)
+        return get_timezone_gmt(dt, width=width, locale=locale)
 
     return get_timezone_location(dt_or_tzinfo, locale=locale)