diff --git a/cts/cli/regression.dates.exp b/cts/cli/regression.dates.exp index 3b8f8e3f5d7..96ab48052aa 100644 --- a/cts/cli/regression.dates.exp +++ b/cts/cli/regression.dates.exp @@ -369,6 +369,14 @@ Duration: 3 months Duration ends at: 2009-04-30 00:00:00Z =#=#=#= End test: 2009-01-31 + 3 Months - OK (0) =#=#=#= * Passed: iso8601 - 2009-01-31 + 3 Months +=#=#=#= Begin test: Test correct immediate plus-sign at timezone parsing =#=#=#= +Date: 1556246574 +=#=#=#= End test: Test correct immediate plus-sign at timezone parsing - OK (0) =#=#=#= +* Passed: iso8601 - Test correct immediate plus-sign at timezone parsing +=#=#=#= Begin test: Like the previous, with exotic timezone to avoid false negative =#=#=#= +Date: 1556246574 +=#=#=#= End test: Like the previous, with exotic timezone to avoid false negative - OK (0) =#=#=#= +* Passed: iso8601 - Like the previous, with exotic timezone to avoid false negative =#=#=#= Begin test: 2009-03-31 - 1 Month =#=#=#= Date: 2009-03-31 00:00:00Z Duration: -1 months diff --git a/cts/cts-cli.in b/cts/cts-cli.in index bf1e0807440..14b5a6b02b6 100644 --- a/cts/cts-cli.in +++ b/cts/cts-cli.in @@ -1159,6 +1159,10 @@ class DatesRegressionTest(RegressionTest): "iso8601 -d '2009-01-31 00:00:00Z' -D P2M -E '2009-03-31 00:00:00Z'"), Test("2009-01-31 + 3 Months", "iso8601 -d '2009-01-31 00:00:00Z' -D P3M -E '2009-04-30 00:00:00Z'"), + Test("Test correct immediate plus-sign at timezone parsing", + "iso8601 -d '2019-04-25T21:42:54+0200' -S"), + Test("Like the previous, with exotic timezone to avoid false negative", + "iso8601 -d '2019-04-25T21:42:54+0420' -S"), make_test_group("2009-03-31 - 1 Month", "iso8601 {fmt} -d '2009-03-31 01:00:00 +01:00' -D P-1M -E '2009-02-28 00:00:00Z'", [Test, ValidatingTest]),