pacemaker/Resolve-the-failure-of-time-matching-in-test-cases.patch
jiangxinyu 2b19975540 Resolve the failure of time matching in test cases
(cherry picked from commit 9e3db2331a40b41291c3f452aaa4a3263cdd6eac)
2021-03-23 21:00:57 +08:00

14 lines
419 B
Diff

diff --git a/cts/cts-cli.in b/cts/cts-cli.in
index cff4bbf..707403f 100644
--- a/cts/cts-cli.in
+++ b/cts/cts-cli.in
@@ -947,7 +947,7 @@ EOF
if [ "$(uname)" == "FreeBSD" ]; then
tomorrow=$(date -v+1d +"%F %T %z")
else
- tomorrow=$(date --date=tomorrow +"%F %T %z")
+ tomorrow=$(date --date=tomorrow +"%F %T")
fi
TMPXML=$(mktemp ${TMPDIR:-/tmp}/cts-cli.tools.xml.XXXXXXXXXX)