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 11:06:31 +0200 |
| commit | 69ffb1acf38bd34f76707468bb592eb4b164e2da (patch) | |
| tree | cd980ace22ce5812a19f4a769d4d6b59534f6dbb /docs | |
| parent | 6b7960188b4fa0a2b357d8f40a3316e2e3755e87 (diff) | |
Refs #32366 -- Avoided use of datetime.utcnow() in the documentation.
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): ... |
