The idea is to set the CLIENT_DATE (BUILD_DATE in share/genbuild.sh to the date of last commit.
However, the problem with gitian builds:
- gitian builds are built from a
make distarchive and not from git directly share/genbuild.shtries to get information from git, if this fails, it uses the current date (which is useless in gitian bulds)
This is tricky to fix. The most general solution would be to generate and package a build.h on make dist instead of trying to generate it without git information when building.
Note: The build date is only shown in the GUI debug window, as well as logged in debug.log and printed in wallet exports, so this is low priority, but can potentially confuse users.