Description: Use SOURCE_DATE_EPOCH for copyright year to make build reproducible
Author: Ondřej Nový <novy@ondrej.org>
Forwarded: not-needed
Last-Update: 2016-04-23

--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -69,7 +69,11 @@
 
 # General information about the project.
 project = u'Swift'
-copyright = u'%d, OpenStack Foundation' % datetime.datetime.now().year
+if os.environ.has_key('SOURCE_DATE_EPOCH'):
+    this_year = datetime.datetime.utcfromtimestamp(float(os.environ.get('SOURCE_DATE_EPOCH'))).year
+else:
+    this_year = datetime.date.today().year
+copyright = u'%d, OpenStack Foundation' % this_year
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
