summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2001-01-30 11:25:31 +0000
committerChristian Lippka <cl@openoffice.org>2001-01-30 11:25:31 +0000
commit643192e81efa7800eb0d9602061bcac04338e6fe (patch)
treea978a5f3ee85745bafc484a758c139b39cfb1e0f /xmloff/source
parentcca2ef892717d1185121a36375ef912ce870eb19 (diff)
fixed convertDateTime for converting uitl::DateTime to ISO Time string
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/core/xmluconv.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx
index 95b51db6b95b..c2e65d0263b6 100644
--- a/xmloff/source/core/xmluconv.cxx
+++ b/xmloff/source/core/xmluconv.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmluconv.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: dvo $ $Date: 2001-01-15 13:31:51 $
+ * last change: $Author: cl $ $Date: 2001-01-30 12:25:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -879,7 +879,7 @@ void SvXMLUnitConverter::convertTime( ::rtl::OUStringBuffer& rBuffer,
double fTempTime = fHour / 24;
fTempTime += fMin / (24 * 60);
fTempTime += fSec / (24 * 60 * 60);
- fTempTime += fSec100 / (24 * 60 * 60 * 60);
+ fTempTime += fSec100 / (24 * 60 * 60 * 100);
convertTime( rBuffer, fTempTime );
}
@@ -890,6 +890,7 @@ sal_Bool SvXMLUnitConverter::convertTime( ::com::sun::star::util::DateTime& rDat
double fTempTime = 0.0;
if( convertTime( fTempTime, rString ) )
{
+ fTempTime *= 24;
double fHoursValue = SolarMath::ApproxFloor (fTempTime);
fTempTime -= fHoursValue;
fTempTime *= 60;