linuxmint / warpinator

Share files across the LAN
GNU General Public License v3.0
1.21k stars 81 forks source link

Allow to override build date with SOURCE_DATE_EPOCH #178

Closed bmwiedemann closed 1 year ago

bmwiedemann commented 1 year ago

Allow to override build date with SOURCE_DATE_EPOCH in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. This date call works with various implementations of date. Also use UTC to be independent of timezone.

note: dropping current_date is also an option to simplify the code.

This PR was done while working on reproducible builds for openSUSE.