mirror of
https://github.com/django/django.git
synced 2025-06-07 12:39:12 +00:00
[1.8.x] Fixed typo in django/forms/utils.py docstring.
Backport of b8b776aabe9afcd771f5c49afd2b41b44cae65a4 from master
This commit is contained in:
parent
2955dfdeca
commit
07e01dce40
@ -178,7 +178,7 @@ def from_current_timezone(value):
|
|||||||
def to_current_timezone(value):
|
def to_current_timezone(value):
|
||||||
"""
|
"""
|
||||||
When time zone support is enabled, convert aware datetimes
|
When time zone support is enabled, convert aware datetimes
|
||||||
to naive dateimes in the current time zone for display.
|
to naive datetimes in the current time zone for display.
|
||||||
"""
|
"""
|
||||||
if settings.USE_TZ and value is not None and timezone.is_aware(value):
|
if settings.USE_TZ and value is not None and timezone.is_aware(value):
|
||||||
current_timezone = timezone.get_current_timezone()
|
current_timezone = timezone.get_current_timezone()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user