summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oox/source/docprop/docprophandler.cxx3
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/docprop/docprophandler.cxx b/oox/source/docprop/docprophandler.cxx
index 4d04f50f86b7..1a5000b03906 100644
--- a/oox/source/docprop/docprophandler.cxx
+++ b/oox/source/docprop/docprophandler.cxx
@@ -480,7 +480,8 @@ void SAL_CALL OOXMLDocPropHandler::characters( const OUString& aChars )
case EXTPR_TOKEN( TotalTime ):
try
{
- m_xDocProp->setEditingDuration( aChars.toInt32() );
+ // The TotalTime is in mins as per ECMA specification.
+ m_xDocProp->setEditingDuration( aChars.toInt32() * 60 );
}
catch (lang::IllegalArgumentException &)
{
diff --git a/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx
index fa806794f0fd..9121588c9d3f 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlfieldexport.cxx
@@ -580,7 +580,7 @@ DECLARE_OOXMLEXPORT_TEST(testEditTime, "fdo81341.docx")
//Ensure that EditTime is written inside w:fldChar in "HH:MM:SS" format.
assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:r[1]/w:fldChar", "fldCharType", "begin");
assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:r[3]/w:fldChar", "fldCharType", "separate");
- assertXPathContent(pXmlDoc, "/w:document/w:body/w:p/w:r[4]/w:t", "00:00:05");
+ assertXPathContent(pXmlDoc, "/w:document/w:body/w:p/w:r[4]/w:t", "00:05");
assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:r[5]/w:fldChar", "fldCharType", "end");
}
}