summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/dbdocutl.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/data/dbdocutl.cxx b/sc/source/core/data/dbdocutl.cxx
index e5838a7eb78f..4f8f2bba8f45 100644
--- a/sc/source/core/data/dbdocutl.cxx
+++ b/sc/source/core/data/dbdocutl.cxx
@@ -95,9 +95,7 @@ void ScDatabaseDocUtil::PutData( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB
SvNumberFormatter* pFormTable = pDoc->GetFormatTable();
nFormatIndex = pFormTable->GetStandardFormat(
css::util::NumberFormat::DATE, ScGlobal::eLnge );
-
- nVal = Date( aDate.Day, aDate.Month, aDate.Year ) -
- *pFormTable->GetNullDate();
+ nVal = Date( aDate ) - *pFormTable->GetNullDate();
}
bValue = true;
}