mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #23388 -- Made django.utils.timezone.override usable as a decorator
This commit is contained in:
parent
8b6cb9d0dd
commit
032c091659
3 changed files with 36 additions and 1 deletions
|
@ -901,6 +901,10 @@ appropriate entities.
|
|||
``None``, the :ref:`current time zone <default-current-time-zone>` is unset
|
||||
on entry with :func:`deactivate()` instead.
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
``override`` is now usable as a function decorator.
|
||||
|
||||
.. function:: localtime(value, timezone=None)
|
||||
|
||||
Converts an aware :class:`~datetime.datetime` to a different time zone,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue