From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 15 Nov 2023 05:20:17 +0000 (+0100) Subject: [3.11] Docs: Add the time to the HTML last updated format (GH-110091) (#112103) X-Git-Tag: v3.11.7~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a92b9e5b2b50638c1a01e0e7fe77c81148d74285;p=thirdparty%2FPython%2Fcpython.git [3.11] Docs: Add the time to the HTML last updated format (GH-110091) (#112103) 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> --- diff --git a/Doc/conf.py b/Doc/conf.py index 8c92799ecbbf..3f5ba5d969d3 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -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']