mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
gh-121871: Allow overriding docs build date with SOURCE_DATE_EPOCH (#121872)
This commit is contained in:
parent
f036a463db
commit
941b3b7f44
@ -347,7 +347,8 @@ html_context = {
|
||||
}
|
||||
|
||||
# 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']
|
||||
|
Loading…
Reference in New Issue
Block a user