diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2021-05-07 11:12:11 +0100 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2021-05-12 12:12:28 +0200 |
| commit | cd84f7acfa65775837952bf4d1b654966be3c2cf (patch) | |
| tree | bf4ea2c84f8ba5143b3e21e965cb374b17e0a733 /docs | |
| parent | fab710d3ff9af9aaeed1b17783ad113186b2280e (diff) | |
[3.2.x] Refs #32366 -- Avoided use of datetime.utcnow() in the documentation.
Backport of 69ffb1acf38bd34f76707468bb592eb4b164e2da from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/i18n/timezones.txt | 3 |
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): ... |
