Skip to content

Commit

Permalink
Codefix: [CMake] use the UTC0 date for our ISODATE (OpenTTD#12470)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain authored and ladysadie committed Apr 10, 2024
1 parent c56da3e commit 2b571d5
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 2b571d5

Please sign in to comment.