Many source control systems have an option to set the local file timestamp to the last modification or checkin time of the file into the repository when getting from the repository. Barring that, you may need to set them yourself or modify your build process to not rely on them (perhaps delete all output files before building).
|