mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #23668 -- Removed passing default argument of current TZ to make_aware()/naive.
This commit is contained in:
@@ -174,6 +174,5 @@ def to_current_timezone(value):
|
||||
to naive datetimes in the current time zone for display.
|
||||
"""
|
||||
if settings.USE_TZ and value is not None and timezone.is_aware(value):
|
||||
current_timezone = timezone.get_current_timezone()
|
||||
return timezone.make_naive(value, current_timezone)
|
||||
return timezone.make_naive(value)
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user