summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/i18n/timezones.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/topics/i18n/timezones.txt b/docs/topics/i18n/timezones.txt
index ab8902b0cd..e95b7a29de 100644
--- a/docs/topics/i18n/timezones.txt
+++ b/docs/topics/i18n/timezones.txt
@@ -535,10 +535,9 @@ Troubleshooting
Let's reproduce this error by comparing a naive and an aware datetime::
- >>> import datetime
>>> from django.utils import timezone
- >>> naive = datetime.datetime.utcnow()
>>> aware = timezone.now()
+ >>> naive = timezone.make_naive(aware)
>>> naive == aware
Traceback (most recent call last):
...