I am using the deserializeDate method for handling xsd:Date types.  I get a
date of the form yyyy-mm-dd (i.e. 1975-08-15).  Given the date string
1975-08-15, the deserializeDate method returns the following java.Util.Date
:  Thu Aug 14 20:00:00 EDT 1975.  I am expecting it to return August 15th,
not 14th.

Looking around in the source code, line 707 is this :

long day = parseDigits(text, split+4, 2) - 1;

The parseDigits method returns the proper date (15) but the -1 here changes
it to 14.  I don't know if this is an error or if this is by design.  I
found a bug report mentioning the same issue :
http://jira.codehaus.org/browse/JIBX-209

but in the resolution was that it could not be reproduced.

I am using JiBX version 1.2.2

Thank you,
Rudy Jadeja
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to