From efb7f9ced2dcf71294353596a265e3fd67faffeb Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 18 Feb 2025 08:35:36 +0100 Subject: Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc. datetime.UTC was added in Python 3.11. --- docs/intro/tutorial02.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/intro') diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index 6a87d2d01c..f78a83d1bd 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -376,7 +376,7 @@ Once you're in the shell, explore the :doc:`database API `: >>> q.question_text "What's new?" >>> q.pub_date - datetime.datetime(2012, 2, 26, 13, 0, 0, 775217, tzinfo=datetime.timezone.utc) + datetime.datetime(2012, 2, 26, 13, 0, 0, 775217, tzinfo=datetime.UTC) # Change values by changing the attributes, then calling save(). >>> q.question_text = "What's up?" -- cgit v1.3