From: Alex Morega Date: Fri, 5 Jul 2013 09:13:34 +0000 (+0200) Subject: fix expected values for timezone names X-Git-Tag: 1.0~129^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12%2Fhead;p=thirdparty%2Fbabel.git fix expected values for timezone names commonly-used names no longer available --- diff --git a/babel/dates.py b/babel/dates.py index ec9d63f1..a34f549d 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -328,16 +328,16 @@ def get_timezone_name(dt_or_tzinfo=None, width='long', uncommon=False, >>> tz = timezone('Europe/Berlin') >>> get_timezone_name(tz, locale='de_DE') - u'Deutschland' + u'Mitteleurop\xe4ische Zeit' >>> get_timezone_name(tz, locale='pt_BR') - u'Hor\xe1rio Alemanha' + u'Hor\xe1rio da Europa Central' On the other hand, if the country uses multiple timezones, the city is also included in the representation: >>> tz = timezone('America/St_Johns') >>> get_timezone_name(tz, locale='de_DE') - u"Kanada (St. John's)" + u'Neufundland-Zeit' :param dt_or_tzinfo: the ``datetime`` or ``tzinfo`` object that determines the timezone; if a ``tzinfo`` object is used, the