From 5062a66d01d5cb0e95fd57266fb5b1224e71c5d5 Mon Sep 17 00:00:00 2001
From: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Date: Fri, 29 Sep 2023 11:24:10 +0100
Subject: [PATCH 1/6] Add time to the HTML last updated format

---
 Doc/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Doc/conf.py b/Doc/conf.py
index c92ea60ee07094..9afea4b451a272 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -290,7 +290,7 @@
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
-html_last_updated_fmt = '%b %d, %Y'
+html_last_updated_fmt = '%b %d, %Y (%H:%M)'
 
 # Path to find HTML templates.
 templates_path = ['tools/templates']

From 8559481fb4a5c1fbceb15338fe90a1c13b4730ae Mon Sep 17 00:00:00 2001
From: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Date: Fri, 29 Sep 2023 13:10:23 +0100
Subject: [PATCH 2/6] Add the timezone

Co-authored-by: Victor Stinner <vstinner@python.org>
---
 Doc/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Doc/conf.py b/Doc/conf.py
index 9afea4b451a272..82b545f6ae0f39 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -290,7 +290,7 @@
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
-html_last_updated_fmt = '%b %d, %Y (%H:%M)'
+html_last_updated_fmt = '%b %d, %Y (%H:%M UTC)'
 
 # Path to find HTML templates.
 templates_path = ['tools/templates']

From 7ae53362fda7b21596385af367cb50e84605fcc8 Mon Sep 17 00:00:00 2001
From: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Date: Fri, 29 Sep 2023 15:57:30 +0100
Subject: [PATCH 3/6] Fix timezone information

---
 Doc/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Doc/conf.py b/Doc/conf.py
index 82b545f6ae0f39..08a2066004e197 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -290,7 +290,7 @@
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
-html_last_updated_fmt = '%b %d, %Y (%H:%M UTC)'
+html_last_updated_fmt = '%b %d, %Y (%H:%M GMT%z)'
 
 # Path to find HTML templates.
 templates_path = ['tools/templates']

From 71549e7ff11691f1111d36e61a409417e1400867 Mon Sep 17 00:00:00 2001
From: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Date: Fri, 29 Sep 2023 16:01:18 +0100
Subject: [PATCH 4/6] Formatting

---
 Doc/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Doc/conf.py b/Doc/conf.py
index 08a2066004e197..c2e57ab71367e7 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -290,7 +290,7 @@
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
-html_last_updated_fmt = '%b %d, %Y (%H:%M GMT%z)'
+html_last_updated_fmt = '%b %d, %Y (%H:%M, GMT%z)'
 
 # Path to find HTML templates.
 templates_path = ['tools/templates']

From 605aaaa0b70a668608b7520ad79714d7d288ed02 Mon Sep 17 00:00:00 2001
From: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Date: Wed, 18 Oct 2023 10:29:25 +0100
Subject: [PATCH 5/6] Use a static time

---
 Doc/conf.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Doc/conf.py b/Doc/conf.py
index c2e57ab71367e7..819320b82d672d 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -288,9 +288,8 @@
     "pr_id": os.getenv("READTHEDOCS_VERSION")
 }
 
-# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
-# using the given strftime format.
-html_last_updated_fmt = '%b %d, %Y (%H:%M, GMT%z)'
+# This 'Last updated on:' timestamp is inserted at the bottom of every page.
+html_last_updated_fmt = time.strftime('%b %d, %Y (%H:%M GMT)', time.gmtime())
 
 # Path to find HTML templates.
 templates_path = ['tools/templates']

From 85533c6e7f2ed6c2c049972812c766e33004d7dd Mon Sep 17 00:00:00 2001
From: Victor Stinner <vstinner@python.org>
Date: Wed, 15 Nov 2023 04:56:11 +0100
Subject: [PATCH 6/6] Update Doc/conf.py

---
 Doc/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Doc/conf.py b/Doc/conf.py
index 819320b82d672d..f1b411126c4e87 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -289,7 +289,7 @@
 }
 
 # This 'Last updated on:' timestamp is inserted at the bottom of every page.
-html_last_updated_fmt = time.strftime('%b %d, %Y (%H:%M GMT)', time.gmtime())
+html_last_updated_fmt = time.strftime('%b %d, %Y (%H:%M UTC)', time.gmtime())
 
 # Path to find HTML templates.
 templates_path = ['tools/templates']