diff --git a/compileinfo.sh b/compileinfo.sh
index 1d8b8d9..93e157a 100755
--- a/compileinfo.sh
+++ b/compileinfo.sh
@@ -1,8 +1,8 @@
 #!/bin/bash
 
 echo '// Automatically generated file. See project file and compileinfo.sh for further information.'
-date --utc '+const char *pCompileInfoTimestamp = "%Y-%m-%d-%H.%M.%S";'
-head -qn 1 changelog debian/changelog 2>/dev/null | awk '{
+date --utc '+const char *pCompileInfoTimestamp = "%Y-%m-%d-%H.%M.%S";' -d "$(dpkg-parsechangelog -S Date)"
+head -qn 1 debian/changelog 2>/dev/null | awk '{
                                     Version = $2
                                     gsub ("\\(", "", Version)
                                     gsub ("\\)", "", Version)
