1
0
mirror of https://github.com/django/django.git synced 2025-04-08 23:46:43 +00:00

Refs -- Avoided use of datetime.utcnow() in the documentation.

This commit is contained in:
Nick Pope 2021-05-07 11:12:11 +01:00 committed by Carlton Gibson
parent 6b7960188b
commit 69ffb1acf3

@ -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):
...