summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-05-03 16:36:20 +0200
committerEike Rathke <erack@redhat.com>2017-05-03 16:37:50 +0200
commitcc0ea8bb251c464d55e831ed7e11a2f3f7371d38 (patch)
treef3b8ad3adce8b87d319af3cce8525a45507b567c /basic
parentc52f2780b5983cdbafabfcf97eb6fc2c6d934b51 (diff)
More likely month pos first
Change-Id: I0033c176071642f8df245307af79b8505644a004
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 43548c05edb9..f0166383c14e 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -2092,7 +2092,7 @@ RTLFUNC(CDateFromIso)
if (!comphelper::string::isdigitAsciiString(aStr))
break;
- const sal_Int32 nMonthPos = (nLen == 6 ? 2 : (nLen == 9 ? 5 : 4));
+ const sal_Int32 nMonthPos = (nLen == 8 ? 4 : (nLen == 6 ? 2 : 5));
if (nMonthPos == 2)
bUseTwoDigitYear = true;
aYearStr = aStr.copy( 0, nMonthPos );