summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2021-07-06 14:05:58 +0200
committerEike Rathke <erack@redhat.com>2021-07-06 21:20:41 +0200
commitf94c004a978a43616266ed43e91d9d129e985da2 (patch)
tree1eb900d2fc11eafb23be999d8b218359248e38f5 /svl
parentfb938255c57bb1951ed44a7518ce29849e4f170a (diff)
Related: tdf#125035 Introduce LongDateOrder and handle YDM in DateFormatter
This fixes also unotools/source/i18n/localedatawrapper.cxx:1473: LocaleDataWrapper::scanDateOrder: no magic applicable lv-LV requested lv-LV loaded that is the only locale with a YDM long date order. Change-Id: I776b8706bf5bd3ec11cc46d38fd3613c8df7519f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118482 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 5e3bfdeb5ea4878a2546a7e1e16d0f3b6482024e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118520
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zforfind.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index 4f5fd03ce6be..8b01debbb1d4 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -2728,7 +2728,7 @@ bool ImpSvNumberInputScan::ScanMidString( const OUString& rString, sal_uInt16 nS
switch (eScannedType)
{
case SvNumFormatType::DATE:
- if (nMonthPos == 1 && pLoc->getLongDateOrder() == DateOrder::MDY)
+ if (nMonthPos == 1 && pLoc->getLongDateOrder() == LongDateOrder::MDY)
{
// #68232# recognize long date separators like ", " in "September 5, 1999"
if (SkipString( pLoc->getLongDateDaySep(), rString, nPos ))