summaryrefslogtreecommitdiff
path: root/sax/source/tools/converter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sax/source/tools/converter.cxx')
-rw-r--r--sax/source/tools/converter.cxx7
1 files changed, 1 insertions, 6 deletions
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);