summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2016-06-14 12:57:17 +0300
committerBaptiste Mispelon <bmispelon@gmail.com>2016-06-14 12:01:09 +0200
commitb789d81c957b437f43a3329bfef45312232bf80c (patch)
treec2c4860c6bfda98f99f15d217c79df7ece622567 /docs/ref
parent324eaf42f249d07c5cd236798fda50e08aa5c501 (diff)
[1.9.x] Fixed #26754 -- Documented django.template.context_processors.tz
Backport of 7003174fec188bd5a21e3d62bd5e13e80f6f329c from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/templates/api.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index f6283f3bd2..0efb10b9dd 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -757,6 +757,14 @@ tag for protection against :doc:`Cross Site Request Forgeries
If this processor is enabled, every ``RequestContext`` will contain a variable
``request``, which is the current :class:`~django.http.HttpRequest`.
+``django.template.context_processors.tz``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. function:: tz
+
+If this processor is enabled, every ``RequestContext`` will contain a variable
+``TIME_ZONE``, providing the name of the currently active time zone.
+
``django.contrib.messages.context_processors.messages``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~