https://github.com/python/cpython/commit/7e5f6be763a6a3793dc2de1aecd138ca8776c38f commit: 7e5f6be763a6a3793dc2de1aecd138ca8776c38f branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2024-07-17T00:12:12-06:00 summary:
[3.13] gh-121871: Allow overriding docs build date with SOURCE_DATE_EPOCH (GH-121872) (#121888) Co-authored-by: Bernhard M. Wiedemann <[email protected]> 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]
