changeset 255:d5543485e49c

Fix for `get_timezone_name` when falling back to GMT display.
author cmlenz
date Wed, 15 Aug 2007 12:35:45 +0000
parents 76fdd2ce5c51
children 650ef4d82c91
files babel/dates.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
Copyright (C) 2012-2017 Edgewall Software