Skip to content

Commit

Permalink
BUILD: Set timezone on release date for reproducibility
Browse files Browse the repository at this point in the history
To make the build reproducible, it's needed to set the timezone as
otherwise the date could vary based on the timezone of the build server.

Link: https://bugs.debian.org/1060254
  • Loading branch information
Chris Lamb authored and diederikdehaas committed Feb 10, 2024
1 parent c40c965 commit af46c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auxiliary_files/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include(pkg-utils)

if(NOT BUILD_RELEASE_DATE)
# If BUILD_RELEASE_DATE has not been set, default to time of build
string(TIMESTAMP BUILD_RELEASE_DATE "%Y-%m-%d")
string(TIMESTAMP BUILD_RELEASE_DATE "%Y-%m-%d" UTC)
endif()

if(overlay)
Expand Down

0 comments on commit af46c1a

Please sign in to comment.