]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Docs: Add the time to the HTML last updated format (GH-110091) (#112103)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Nov 2023 05:20:17 +0000 (06:20 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Nov 2023 05:20:17 +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 8c92799ecbbf3bb1a937b614590b7afe0977a570..3f5ba5d969d313caa6307f0aa4d5a213508a2958 100644 (file)
@@ -280,9 +280,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']