mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 11:23:21 +00:00
Codefix: [CMake] use the UTC0 date for our ISODATE (#12470)
This commit is contained in:
parent
f0f97c698b
commit
1b4bb1d38a
@ -49,7 +49,8 @@ if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
|||||||
string(SUBSTRING "${FULLHASH}" 0 10 SHORTHASH)
|
string(SUBSTRING "${FULLHASH}" 0 10 SHORTHASH)
|
||||||
|
|
||||||
# Get the last commit date
|
# 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_VARIABLE COMMITDATE
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user