]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Docs: Add the time to the HTML last updated format (GH-110091) (#112102)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Nov 2023 05:20:14 +0000 (06:20 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2023 05:20:14 +0000 (06:20 +0100)
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>
Doc/conf.py

index 9f01bd89a35d3c5acb41ab70846feb932deb87f8..98b84db964bf5ee76ee0ed93ba9ce1874b0cf553 100644 (file)
@@ -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']