diff --git a/debian/changelog b/debian/changelog
index 02033c57745ed45cb97b7bad461fd1e4ed6a72a4..da0f727d8712bac90f5c0b7f7203512efbb4f069 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+jython (2.7.1+repack-7) UNRELEASED; urgency=medium
+
+  * Improve build reproducibility using dh_strip_nondeterminism and
+    SOURCE_DATE_EPOCH
+
+ -- Gilles Filippini <pini@debian.org>  Sat, 10 Nov 2018 11:38:50 +0100
+
 jython (2.7.1+repack-6) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/control b/debian/control
index 3e417e1e813cefaa5301e80dd4414958c939ff29..f63735921fada21f97c02adb7d23919ce2fffb32 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: python
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
 Uploaders: Jakub Adam <jakub.adam@ktknet.cz>, Gilles Filippini <pini@debian.org>
-Build-Depends: debhelper (>= 10), dh-exec, ant, gawk, maven-repo-helper, javahelper, python, libjaxb-api-java
+Build-Depends: debhelper (>= 10), dh-exec, ant, gawk, maven-repo-helper, javahelper, python, libjaxb-api-java, dh-strip-nondeterminism
 Build-Depends-Indep: default-jdk,
  dh-python,
  junit4,
diff --git a/debian/rules b/debian/rules
index 4040c39c918d9b446dba79ff5fcc07f8f796af48..8d3dbb5385c4b3085305020f4c883d73c0365c1c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -71,6 +71,8 @@ override_dh_auto_build:
 	# Build the class files.
 	# -nouserlib is required to prevent conflicts with the ant jython plugin
 	ant -nouserlib developer-build jar javadoc \
+	  -Dbuild.date="$(shell date -d @$(SOURCE_DATE_EPOCH) "+%b %d %Y")" \
+	  -Dbuild.time="$(shell date -d @$(SOURCE_DATE_EPOCH) "+%H:%M:%S")" \
 	  -Dmain.classpath=$(OUR_MAIN_CLASSPATH) \
 	  -Dtest.classpath=$(OUR_TEST_CLASSPATH) \
 	  -Druntime.classpath="$(OUR_RUNTIME_CLASSPATH)"