https://github.com/python/cpython/commit/7057d5e270e771e1c6c6eb79c4cdcbd8e5f0ec83 commit: 7057d5e270e771e1c6c6eb79c4cdcbd8e5f0ec83 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2024-07-17T00:19:09-06:00 summary:
[3.12] gh-121871: Allow overriding docs build date with SOURCE_DATE_EPOCH (GH-121872) (#121887) Co-authored-by: Bernhard M. Wiedemann <[email protected]> files: M Doc/conf.py diff --git a/Doc/conf.py b/Doc/conf.py index cf21ea97e71100..3db65df7a84b21 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -331,7 +331,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]
