# HG changeset patch # User cmlenz # Date 1187181345 0 # Node ID ba30864779ccc93ec7556d64d29ab647c2f5c197 # Parent 318394721dc67a1d255f1f099e685e9eed0c11ae 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)