From 20cbf5bd3042ed547408f324e020a3d6405705f7 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 11 Jul 2013 17:27:06 +0200 Subject: i#108348: support DateTimeWithTimezone in user defined Document Properties - fix interface of sax::Converter to allow passing time zones (rename the parsing methods while at it to reduce pointless overloading) - SfxDocumentMetaData supports DateWithTimezone and DateTimeWithTimezone in user-defined properties - add some ugly hacks to SfxCustomPropertiesPage to preserve existing time zones (which are not displayed in UI currently) Change-Id: Ice94112b9d79c285f80b5beda15f0ace91db97f3 --- sax/qa/cppunit/test_converter.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sax/qa/cppunit/test_converter.cxx') diff --git a/sax/qa/cppunit/test_converter.cxx b/sax/qa/cppunit/test_converter.cxx index cfda248adf6c..b1cb070f8bbc 100644 --- a/sax/qa/cppunit/test_converter.cxx +++ b/sax/qa/cppunit/test_converter.cxx @@ -168,12 +168,12 @@ static void doTest(util::DateTime const & rdt, char const*const pis, OUString is(OUString::createFromAscii(pis)); util::DateTime odt; SAL_INFO("sax.cppunit","about to convert '" << is << "'"); - bool bSuccess( Converter::convertDateTime(odt, is) ); + bool bSuccess( Converter::parseDateTime(odt, 0, is) ); SAL_INFO("sax.cppunit","Y:" << odt.Year << " M:" << odt.Month << " D:" << odt.Day << " H:" << odt.Hours << " M:" << odt.Minutes << " S:" << odt.Seconds << " nS:" << odt.NanoSeconds << " UTC: " << (bool)odt.IsUTC); CPPUNIT_ASSERT(bSuccess); CPPUNIT_ASSERT(eqDateTime(rdt, odt)); OUStringBuffer buf; - Converter::convertDateTime(buf, odt, true); + Converter::convertDateTime(buf, odt, 0, true); SAL_INFO("sax.cppunit","" << buf.getStr()); CPPUNIT_ASSERT_EQUAL(OUString::createFromAscii(pos), buf.makeStringAndClear()); @@ -182,7 +182,7 @@ static void doTest(util::DateTime const & rdt, char const*const pis, static void doTestDateTimeF(char const*const pis) { util::DateTime odt; - bool bSuccess = Converter::convertDateTime(odt, + bool bSuccess = Converter::parseDateTime(odt, 0, OUString::createFromAscii(pis)); SAL_INFO("sax.cppunit","Y:" << odt.Year << " M:" << odt.Month << " D:" << odt.Day << " H:" << odt.Hours << "H M:" << odt.Minutes << " S:" << odt.Seconds << " nS:" << odt.NanoSeconds); CPPUNIT_ASSERT(!bSuccess); -- cgit v1.2.3