summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-29 14:42:56 +0000
committerpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-29 14:42:56 +0000
commit8afe96f6b109298f49cf74bbeda8faa9820fe098 (patch)
tree106221a35f1c5b92db44517e04674446878a1c65
parenta2bdcc4694986fee4f3eb52e3d6ad0509520b9e6 (diff)
downloadfpc-8afe96f6b109298f49cf74bbeda8faa9820fe098.tar.gz
Use gdate/date -u option to get universal time for TEST_DATETIME variable
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@49289 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r--tests/Makefile2
-rw-r--r--tests/Makefile.fpc2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 49fe451f24..8ccd7148d6 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -2421,7 +2421,7 @@ endif
TEST_OUTPUTDIR=output/$(TEST_TARGETSUFFIX)
C_SUBDIR=$(TEST_OS_TARGET)/$(TEST_CPU_TARGET)
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
TEST_DATETIME="No-date"
endif
diff --git a/tests/Makefile.fpc b/tests/Makefile.fpc
index 1a1ab8a5a9..ec0ee95ba4 100644
--- a/tests/Makefile.fpc
+++ b/tests/Makefile.fpc
@@ -111,7 +111,7 @@ C_SUBDIR=$(TEST_OS_TARGET)/$(TEST_CPU_TARGET)
# Date and time the testsuite was run
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
# Use a spaceless string, as it will be used for file names
TEST_DATETIME="No-date"