Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a typo in a comment. Refs #17742.

  • Loading branch information...
commit 939af5a6548bbbae3838773217aecdee910539e8 1 parent 314d82a
@aaugustin aaugustin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/fields/__init__.py
View
2  django/db/models/fields/__init__.py
@@ -678,7 +678,7 @@ def to_python(self, value):
return value
if isinstance(value, datetime.datetime):
if settings.USE_TZ and timezone.is_aware(value):
- # Convert aware datetimes to the current time zone
+ # Convert aware datetimes to the default time zone
# before casting them to dates (#17742).
default_timezone = timezone.get_default_timezone()
value = timezone.make_naive(value, default_timezone)
Please sign in to comment.
Something went wrong with that request. Please try again.