https://github.com/python/cpython/commit/941b3b7f4473153bf99f4c47e99f34f7aefe51ac
commit: 941b3b7f4473153bf99f4c47e99f34f7aefe51ac
branch: main
author: Bernhard M. Wiedemann <[email protected]>
committer: hugovk <[email protected]>
date: 2024-07-16T23:34:00-06:00
summary:
gh-121871: Allow overriding docs build date with SOURCE_DATE_EPOCH (#121872)
files:
M Doc/conf.py
diff --git a/Doc/conf.py b/Doc/conf.py
index 29b1b2db32718b..6ab8e8ccbdfd96 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -347,7 +347,8 @@
}
# 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())
+html_time = int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
+html_last_updated_fmt = time.strftime('%b %d, %Y (%H:%M UTC)',
time.gmtime(html_time))
# Path to find HTML templates.
templates_path = ['tools/templates']
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]