From b789d81c957b437f43a3329bfef45312232bf80c Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Tue, 14 Jun 2016 12:57:17 +0300 Subject: [1.9.x] Fixed #26754 -- Documented django.template.context_processors.tz Backport of 7003174fec188bd5a21e3d62bd5e13e80f6f329c from master --- docs/ref/templates/api.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/ref') 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`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3