From 69ffb1acf38bd34f76707468bb592eb4b164e2da Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Fri, 7 May 2021 11:12:11 +0100 Subject: [PATCH] Refs #32366 -- Avoided use of datetime.utcnow() in the documentation. --- docs/topics/i18n/timezones.txt | 3 +-- 1 file changed, 1 insertion(+), 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): ...