changeset 253:2d9efe2d9c74 trunk

Fix for `get_timezone_name` when falling back to GMT display.
author cmlenz
date Wed, 15 Aug 2007 12:35:45 +0000
parents a6ffb18d0c39
children fd9abff952f5
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