Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
73ff8a29
Kaydet (Commit)
73ff8a29
authored
Agu 20, 2014
tarafından
Lionel Elie Mamane
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
update comments with my new findings
Change-Id: I58e07994e627ce980573812cbe56a068f66b1862
üst
da401ac0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
DateConversion.cxx
connectivity/source/commontools/DateConversion.cxx
+3
-1
No files found.
connectivity/source/commontools/DateConversion.cxx
Dosyayı görüntüle @
73ff8a29
...
@@ -263,10 +263,12 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
...
@@ -263,10 +263,12 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
nStandardKey
=
xFormatTypes
->
getStandardIndex
(
loc
);
nStandardKey
=
xFormatTypes
->
getStandardIndex
(
loc
);
}
}
}
}
// Why use nStandardKey rather than nKeyToUse here?
Don't know
, but "it was always like that".
// Why use nStandardKey rather than nKeyToUse here?
I'm not sure
, but "it was always like that".
// Previously had hardcoded 0 instead of nStandardKey, which led to problems with dates
// Previously had hardcoded 0 instead of nStandardKey, which led to problems with dates
// because of differences M/D/Y vs D/M/Y. This at least fixes those problems, but possibly
// because of differences M/D/Y vs D/M/Y. This at least fixes those problems, but possibly
// nKeyToUse is an even better choice than nStandardKey.
// nKeyToUse is an even better choice than nStandardKey.
// OTOH, using nKeyToUse nullifies the special treatment for percent formats,
// leading to "5" (in a percent format) to be understood as "500%" instead of "5%".
sal_Int32
nRealUsedKey
=
xFormatter
->
detectNumberFormat
(
nStandardKey
,
rString
);
sal_Int32
nRealUsedKey
=
xFormatter
->
detectNumberFormat
(
nStandardKey
,
rString
);
if
(
nRealUsedKey
!=
nKeyToUse
)
if
(
nRealUsedKey
!=
nKeyToUse
)
nRealUsedTypeClass
=
getNumberFormatType
(
xFormatter
,
nRealUsedKey
)
&
~
NumberFormat
::
DEFINED
;
nRealUsedTypeClass
=
getNumberFormatType
(
xFormatter
,
nRealUsedKey
)
&
~
NumberFormat
::
DEFINED
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment