Skip to content

Commit

Permalink
pythongh-121871: Allow overriding docs build date with SOURCE_DATE_EP…
Browse files Browse the repository at this point in the history
…OCH (pythonGH-121872)

(cherry picked from commit 941b3b7)

Co-authored-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
  • Loading branch information
bmwiedemann authored and miss-islington committed Jul 17, 2024
1 parent f888636 commit 34143da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 34143da

Please sign in to comment.