mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #26754 -- Documented django.template.context_processors.tz
This commit is contained in:
parent
ac06cb0e56
commit
7003174fec
2 changed files with 11 additions and 3 deletions
|
@ -315,9 +315,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
|
||||
----------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue