summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/DocumentInfoPreview.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/contnr/DocumentInfoPreview.cxx b/svtools/source/contnr/DocumentInfoPreview.cxx
index 048b0d834618..b538cbad4a08 100644
--- a/svtools/source/contnr/DocumentInfoPreview.cxx
+++ b/svtools/source/contnr/DocumentInfoPreview.cxx
@@ -155,10 +155,10 @@ void ODocumentInfoPreview::insertDateTime(
Time(
value.Hours, value.Minutes, value.Seconds, value.HundredthSeconds));
if (aToolsDT.IsValidAndGregorian()) {
- LocaleDataWrapper aLocaleWrapper( Application::GetSettings().GetLanguageTag().getLocale() );
- rtl::OUStringBuffer buf(aLocaleWrapper.getDate(aToolsDT));
+ const LocaleDataWrapper& rLocaleWrapper( Application::GetSettings().GetLocaleDataWrapper() );
+ rtl::OUStringBuffer buf(rLocaleWrapper.getDate(aToolsDT));
buf.appendAscii(RTL_CONSTASCII_STRINGPARAM(", "));
- buf.append(aLocaleWrapper.getTime(aToolsDT));
+ buf.append(rLocaleWrapper.getTime(aToolsDT));
insertEntry(m_pInfoTable->GetString(id), buf.makeStringAndClear());
}
}