diff options
Diffstat (limited to 'django/forms/utils.py')
| -rw-r--r-- | django/forms/utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/forms/utils.py b/django/forms/utils.py index 9bdaffa44b..73fca86325 100644 --- a/django/forms/utils.py +++ b/django/forms/utils.py @@ -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 |
