mirror of https://github.com/django/django.git
[2.0.x] Refs #25181 -- Updated timezone.now() docs about obtaining the time in the current time zone.
Backport of a7a36bb4d8
from master
This commit is contained in:
parent
22fc7a6594
commit
2679cdbea2
|
@ -958,8 +958,7 @@ appropriate entities.
|
||||||
:ref:`aware <naive_vs_aware_datetimes>` datetime representing the
|
:ref:`aware <naive_vs_aware_datetimes>` datetime representing the
|
||||||
current time in UTC. Note that :func:`now` will always return
|
current time in UTC. Note that :func:`now` will always return
|
||||||
times in UTC regardless of the value of :setting:`TIME_ZONE`;
|
times in UTC regardless of the value of :setting:`TIME_ZONE`;
|
||||||
you can use :func:`localtime` to convert to a time in the current
|
you can use :func:`localtime` to get the time in the current time zone.
|
||||||
time zone.
|
|
||||||
|
|
||||||
.. function:: is_aware(value)
|
.. function:: is_aware(value)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue