A new user interface for you! Read more...

File reproducible.patch of Package python-openstackdocstheme

Index: openstackdocstheme-1.29.2/openstackdocstheme/page_context.py
===================================================================
--- openstackdocstheme-1.29.2.orig/openstackdocstheme/page_context.py
+++ openstackdocstheme-1.29.2/openstackdocstheme/page_context.py
@@ -12,13 +12,16 @@
 
 import datetime
 import os.path
+import os
 import subprocess
+import time
 
 from sphinx.util import logging
 
 LOG = logging.getLogger(__name__)
 
-_default_last_updated = datetime.datetime.now()
+#_default_last_updated = datetime.datetime.now()
+_default_last_updated = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
 
 
 def _get_last_updated_file(src_file):
@@ -36,6 +39,7 @@ def _get_last_updated_file(src_file):
         LOG.info(
             '[openstackdocstheme] Could not get modification time of %s: %s',
             src_file, err)
+        #return datetime.datetime.utcfromtimestamp(os.path.getmtime(src_file))
     else:
         if last_updated_t:
             try: