summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-11-15 05:20:14 (GMT)
committerGitHub <noreply@github.com>2023-11-15 05:20:14 (GMT)
commitc1905527398da3c474ec783ad643330b405211fb (patch)
treece616fd252e4443fc732d8493e63e9fc1c2dcc55
parent24216d0530fda84b482ab29490ddd0d496605e43 (diff)
downloadcpython-c1905527398da3c474ec783ad643330b405211fb.zip
cpython-c1905527398da3c474ec783ad643330b405211fb.tar.gz
cpython-c1905527398da3c474ec783ad643330b405211fb.tar.bz2
[3.12] Docs: Add the time to the HTML last updated format (GH-110091) (#112102)
Docs: Add the time to the HTML last updated format (GH-110091) (cherry picked from commit 6c214dea7c503eb42bd130d43e8880f39bff0350) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
-rw-r--r--Doc/conf.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index 9f01bd8..98b84db 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -288,9 +288,8 @@ html_context = {
"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'
+# This 'Last updated on:' timestamp is inserted at the bottom of every page.
+html_last_updated_fmt = time.strftime('%b %d, %Y (%H:%M UTC)', time.gmtime())
# Path to find HTML templates.
templates_path = ['tools/templates']