diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-06-01 08:09:58 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-06-01 08:09:58 +0200 |
| commit | 939af5a6548bbbae3838773217aecdee910539e8 (patch) | |
| tree | da7a40eb256466755cafe792db26672632d2c2ae | |
| parent | 314d82a94e2d4270b6ec8aa4b3fc2e8ebc404f08 (diff) | |
Fixed a typo in a comment. Refs #17742.
| -rw-r--r-- | django/db/models/fields/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 8a317e79c8..d572cce28f 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -678,7 +678,7 @@ class DateField(Field): 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) |
