From: Christopher Lenz Date: Wed, 15 Aug 2007 12:35:45 +0000 (+0000) Subject: Fix for `get_timezone_name` when falling back to GMT display. X-Git-Tag: 1.0~396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=081576fa1a97d4fcd7fa267fe9e243f696e83ad2;p=thirdparty%2Fbabel.git Fix for `get_timezone_name` when falling back to GMT display. --- diff --git a/babel/dates.py b/babel/dates.py index fd6db45a..df722635 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -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)