Skip to content

Commit

Permalink
gh-121871: Allow overriding docs build date with SOURCE_DATE_EPOCH (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwiedemann authored Jul 17, 2024
1 parent f036a46 commit 941b3b7
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 941b3b7

Please sign in to comment.