Replace the awful "new Date()" by the config value "build.timestamp".
I'm not sure it's the best possible way to get a good timestamp. But at least it's the standard one.