From 0c09a09eee3463bd563193752f14d8a2612dae48 Mon Sep 17 00:00:00 2001 From: Alex Morega Date: Fri, 5 Jul 2013 11:13:34 +0200 Subject: [PATCH] fix expected values for timezone names commonly-used names no longer available --- babel/dates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.2