1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[4.1.x] Updated UTC uses to datetime.timezone.utc in docs.

Backport of a16132a9c4 from main
This commit is contained in:
Diane DeMers Chen
2022-10-20 15:52:45 -07:00
committed by Mariusz Felisiak
parent 84814412a0
commit 2611ecd5d9
3 changed files with 4 additions and 4 deletions

View File

@@ -407,7 +407,7 @@ Once you're in the shell, explore the :doc:`database API </topics/db/queries>`::
>>> q.question_text
"What's new?"
>>> q.pub_date
datetime.datetime(2012, 2, 26, 13, 0, 0, 775217, tzinfo=<UTC>)
datetime.datetime(2012, 2, 26, 13, 0, 0, 775217, tzinfo=datetime.timezone.utc)
# Change values by changing the attributes, then calling save().
>>> q.question_text = "What's up?"