From fbc6415b85a855d3658be758efe4684cfd49faa3 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Mon, 1 Oct 2018 15:57:12 +0200 Subject: Resolves: tdf#119613 [*-ZA] default to ISO 8601 date format This also made it necessary to adapt the unit tests that checked for the old default format in output. Change-Id: Ie7bc78d1e5a17e5cb6f52d5ed1ab42db80f07d2e Reviewed-on: https://gerrit.libreoffice.org/61200 Reviewed-by: Eike Rathke Tested-by: Jenkins --- svl/qa/unit/svl.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'svl/qa') diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index 801e5d3fc405..579a336b692c 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -1213,14 +1213,14 @@ void Test::testIsNumberFormatSpecific() } { - // en-ZA uses Y/M/D format, test that Y/M/D input leads to Y/M/D output - // and ISO Y-M-D input leads to Y-M-D output. + // en-ZA uses Y-M-D and Y/M/D format, test that either are accepted. + // The default format changed from YY/MM/DD to YYYY-MM-DD. SvNumberFormatter aFormatter(m_xContext, LANGUAGE_ENGLISH_SAFRICA); std::vector aIO = { - { "1999/11/22", true, "99/11/22", 0 }, // if default YY changes to YYYY adapt this + { "1999/11/22", true, "1999-11-22", 0 }, { "1999-11-22", true, "1999-11-22", 0 }, - { "11/2/1", true, "11/02/01", 0 }, // if default YY changes to YYYY adapt this + { "11/2/1", true, "2011-02-01", 0 }, { "99-2-11", true, "1999-02-11", 0 }, { "22-2-11", true, "2022-02-11", 0 } }; -- cgit