Browse Source

Use gdate/date -u option to get universal time for TEST_DATETIME variable

git-svn-id: trunk@49289 -
(cherry picked from commit 6f4617eeb31097ba877e3f0ebf8ef093bd8c5b2e)
pierre 4 years ago
parent
commit
5ecd5a62e6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      tests/Makefile
  2. 1 1
      tests/Makefile.fpc

+ 1 - 1
tests/Makefile

@@ -2187,7 +2187,7 @@ endif
 TEST_OUTPUTDIR=output/$(TEST_TARGETSUFFIX)
 TEST_OUTPUTDIR=output/$(TEST_TARGETSUFFIX)
 C_SUBDIR=$(TEST_OS_TARGET)/$(TEST_CPU_TARGET)
 C_SUBDIR=$(TEST_OS_TARGET)/$(TEST_CPU_TARGET)
 ifneq ($(DATE),__missing_command_DATE)
 ifneq ($(DATE),__missing_command_DATE)
-TEST_DATETIME:=$(shell $(DATE) +%Y%m%d%H%M)
+TEST_DATETIME:=$(shell $(DATE) -u +%Y%m%d%H%M)
 else
 else
 TEST_DATETIME="No-date"
 TEST_DATETIME="No-date"
 endif
 endif

+ 1 - 1
tests/Makefile.fpc

@@ -111,7 +111,7 @@ C_SUBDIR=$(TEST_OS_TARGET)/$(TEST_CPU_TARGET)
 
 
 # Date and time the testsuite was run
 # Date and time the testsuite was run
 ifneq ($(DATE),__missing_command_DATE)
 ifneq ($(DATE),__missing_command_DATE)
-TEST_DATETIME:=$(shell $(DATE) +%Y%m%d%H%M)
+TEST_DATETIME:=$(shell $(DATE) -u +%Y%m%d%H%M)
 else
 else
 # Use a spaceless string, as it will be used for file names
 # Use a spaceless string, as it will be used for file names
 TEST_DATETIME="No-date"
 TEST_DATETIME="No-date"