Skip to content

Commit

Permalink
Codefix: [CMake] use the UTC0 date for our ISODATE (#12470)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain committed Apr 10, 2024
1 parent f0f97c6 commit 1b4bb1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/scripts/FindVersion.cmake
Expand Up @@ -49,7 +49,8 @@ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
string(SUBSTRING "${FULLHASH}" 0 10 SHORTHASH)

# Get the last commit date
execute_process(COMMAND ${GIT_EXECUTABLE} show -s --pretty=format:%ci HEAD
set(ENV{TZ} "UTC0")
execute_process(COMMAND ${GIT_EXECUTABLE} show -s --date=iso-local --pretty=format:%cd HEAD
OUTPUT_VARIABLE COMMITDATE
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
Expand Down

0 comments on commit 1b4bb1d

Please sign in to comment.