[1.9.x] Fixed #26754 -- Documented django.template.context_processors.tz

Backport of 7003174fec from master
This commit is contained in:
Ville Skyttä 2016-06-14 12:57:17 +03:00 committed by Baptiste Mispelon
parent 324eaf42f2
commit b789d81c95
2 changed files with 11 additions and 3 deletions

View file

@ -314,9 +314,9 @@ You can get the name of the current time zone using the
{% get_current_timezone as TIME_ZONE %}
If you enable the ``django.template.context_processors.tz`` context processor,
each :class:`~django.template.RequestContext` will contain a ``TIME_ZONE``
variable with the value of ``get_current_timezone()``.
Alternatively, you can activate the
:func:`~django.template.context_processors.tz` context processor and
use the ``TIME_ZONE`` context variable.
Template filters
----------------