diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-12-29 13:26:44 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-01-13 11:27:55 +0100 |
commit | 43763c6adf901985d44b305b8fcc6270f77b70dd (patch) | |
tree | 3b18a213e863041a6079abe024d7c4dd097f4463 /modules | |
parent | b2b9e890528f27daeb577983e1ed4fe2ecf8f852 (diff) | |
download | tde-cmake-43763c6adf901985d44b305b8fcc6270f77b70dd.tar.gz tde-cmake-43763c6adf901985d44b305b8fcc6270f77b70dd.zip |
tde_curdatetime: Add the -u option to call 'date'
so that the result is not time zone dependent.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/TDEMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 1e334b9..bd8eb29 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1214,7 +1214,7 @@ macro( tde_curdatetime result ) elseif( TDE_SCM_MODULE_DATETIME ) set( ${result} ${TDE_SCM_MODULE_DATETIME} ) else( ) - tde_execute_process( COMMAND "date" "+%m/%d/%Y %H:%M:%S" OUTPUT_VARIABLE ${result} ) + tde_execute_process( COMMAND "date" "-u" "+%m/%d/%Y %H:%M:%S" OUTPUT_VARIABLE ${result} ) string( REGEX REPLACE "(..)/(..)/(....) (........).*" "\\1/\\2/\\3 \\4" ${result} ${${result}} ) endif( ) endmacro( tde_curdatetime ) |