summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2016-07-27 09:02:46 +0200
committerEike Rathke <erack@redhat.com>2016-08-01 08:57:54 +0000
commitaa6bca0dfa0a58aae91eb5fa3564add642cd4238 (patch)
tree16698565d9b0e5637d6f6b37bb17f831c5cf137b /svl/qa
parent0db0fda5a1f77872ca26a4407c88b49a7327c84b (diff)
tdf#101147 Improve (again) minute/month detection
For format like HH:MM:SS MM/DD second MM is detected as minute: see tdf#95339 New rules: - first M following each H is minute - first M following first S is minute Detection Month/minute now fully compatible with Excel even with unwanted detection: SS:MM:HH DD/MM/YY second MM is minute even if user would expect month Change-Id: Ia789fbc2dbd6d2dcbe9b9c34d3f288674966dd10 Reviewed-on: https://gerrit.libreoffice.org/27560 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/svl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 4522516b3075..6af6566b9b43 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1132,8 +1132,8 @@ void Test::testUserDefinedNumberFormats()
checkPreviewString(aFormatter, sCode, -12.0, eLang, sExpected);
}
{ // tdf#995339: detect SSMM as second minute
- sCode = "SS:MM:HH DD/MM/YY";
- sExpected = "54:23:03 02/01/00";
+ sCode = "SS:MM:HH DD/MM/YY"; // Month not detected by Excel, so we do not neither to keep compatibility
+ sExpected = "54:23:03 02/23/00";
checkPreviewString(aFormatter, sCode, M_PI, eLang, sExpected);
}
{ // tdf#99996: better algorithm for fraction representation