From: Joseph Breihan Date: Mon, 5 Oct 2015 05:17:32 +0000 (-0400) Subject: documentation: Correct timezone in example. X-Git-Tag: dev-2a51c9b95d06~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F271%2Fhead;p=thirdparty%2Fbabel.git documentation: Correct timezone in example. Update example in Date and Time documentation to reflect metazone translation. Fixes https://github.com/python-babel/babel/issues/108 --- diff --git a/docs/dates.rst b/docs/dates.rst index 818a3941..f35ee15f 100644 --- a/docs/dates.rst +++ b/docs/dates.rst @@ -352,7 +352,7 @@ functions in the ``babel.dates`` module, most importantly the >>> tz = get_timezone('Europe/Berlin') >>> get_timezone_name(tz, locale=Locale.parse('pt_PT')) - u'Hor\xe1rio Alemanha' + u'Hora da Europa Central' You can pass the function either a ``datetime.tzinfo`` object, or a ``datetime.date`` or ``datetime.datetime`` object. If you pass an actual date,