From 43763c6adf901985d44b305b8fcc6270f77b70dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 29 Dec 2020 13:26:44 +0100 Subject: [PATCH] tde_curdatetime: Add the -u option to call 'date' so that the result is not time zone dependent. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- modules/TDEMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )