# HG changeset patch # User cmlenz # Date 1187181345 0 # Node ID 2d9efe2d9c7474a1e06a2b67855c8559639755ca # Parent a6ffb18d0c3983b33d6e1e8973374f5264bd577b Fix for `get_timezone_name` when falling back to GMT display. diff --git a/babel/dates.py b/babel/dates.py --- a/babel/dates.py +++ b/babel/dates.py @@ -408,7 +408,7 @@ # 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)