Not correct parsing of Date from XML
------------------------------------
Key: GEOT-2634
URL: http://jira.codehaus.org/browse/GEOT-2634
Project: GeoTools
Issue Type: Bug
Components: core xml
Affects Versions: 2.2.3
Reporter: Michal Maniecki
There is an error in class org.geotools.xml.xsi.Date in method
getValue(Element, ElementValue[], Attributes, Map).
Calendar class is used to retrieve a Date from String. In Calendar months are
indexed from 0 but this is not taken into account by GeoTools.
If we get in the XML first of January: 2009-01-01 it is parsed to a date object
2009-02-01. January is indexed 0 in Calendar class, 1 is February.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel