diff options
author | Eike Rathke <erack@redhat.com> | 2011-12-01 23:00:07 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2011-12-01 23:00:37 +0100 |
commit | a97a5310f921a483d0d11a98cd18185890bcccbc (patch) | |
tree | 37109f908424c448db3f3f1ff3227033b0fff067 /sax/source | |
parent | Internal libpq (PostgreSQL client lib) (diff) | |
download | core-a97a5310f921a483d0d11a98cd18185890bcccbc.tar.gz core-a97a5310f921a483d0d11a98cd18185890bcccbc.zip |
we are W3C XMLSchema here, not ISO 8601
Diffstat (limited to 'sax/source')
-rw-r--r-- | sax/source/tools/converter.cxx | 7 |
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); |