diff options
author | Eike Rathke <erack@redhat.com> | 2018-10-01 15:57:12 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-10-01 21:35:39 +0200 |
commit | fbc6415b85a855d3658be758efe4684cfd49faa3 (patch) | |
tree | 9300595c24925400a1291b90dcf07de2ef293d33 /svl/qa | |
parent | 5c64c0e5f264818a648fbe8b49ed784f14cd8e6a (diff) |
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 <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'svl/qa')
-rw-r--r-- | svl/qa/unit/svl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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<FormatInputOutput> 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 } }; |