diff options
author | Daniel Bankston <daniel.e.bankston@gmail.com> | 2012-07-21 03:03:42 -0500 |
---|---|---|
committer | Daniel Bankston <daniel.e.bankston@gmail.com> | 2012-07-21 03:13:21 -0500 |
commit | 5a14b6bb09bd054589deec1a58d96fe5fc562f0c (patch) | |
tree | 6d17ff7bf6cd1c2fc868c10c67b302bc5ab9dfdf | |
parent | 98435468618e2a3c16132c3e870a59a017131a4e (diff) |
Use correct date/datetime format for formula cells and value cells.
Change-Id: I37816eba909caa71aca95c5181daeea1751b6c5a
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index e619d1045822..21c2d145d2b6 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -260,6 +260,8 @@ ScXMLTableRowCellContext::ScXMLTableRowCellContext( ScXMLImport& rImport, { if (nCellType == util::NumberFormat::TEXT) bFormulaTextResult = true; + if(nCellType == util::NumberFormat::DATETIME) + nCellType = util::NumberFormat::UNDEFINED; } rXMLImport.GetStylesImportHelper()->SetAttributes(pStyleName, pCurrencySymbol, nCellType); } |