From a97a5310f921a483d0d11a98cd18185890bcccbc Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 1 Dec 2011 23:00:07 +0100 Subject: we are W3C XMLSchema here, not ISO 8601 --- sax/source/tools/converter.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sax/source') diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 0c0779bac959..f2dea8a9a1a3 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -1352,16 +1352,11 @@ bool Converter::convertDateOrDateTime( //Negative Number ++nPos; } - else if (sal_Unicode('+') == string[nPos]) - { - //Positive Number, explicit AD/CE - ++nPos; - } } sal_Int32 nYear(0); { - // While ISO 8601 specifies years with a minimum of 4 digits, be + // While W3C XMLSchema specifies years with a minimum of 4 digits, be // leninent in what we accept for years < 1000. One digit is acceptable // if the remainders match. bSuccess = readDateTimeComponent(string, nPos, nYear, 1, false); -- cgit