[Mulgara-dev] XSD Date/Time Corruption reproducible
David Moll
DMoll at viewpointusa.com
Thu Jan 25 20:30:24 UTC 2007
I tracked down the location where the error is occuring. In
org.mulgara.store.stringpool.xa.SPDateTimeImpl.java, line 125:
try {
Date date = DateParser.parse(lexicalForm, XSD.DATE_TIME_FORMAT,
Locale.getDefault());
return new SPDateTimeImpl(date);
}
lexicalForm is "1981-04-26T02:56:00.000" and date becomes
357119760000, which is parsed as 1981-04-26T03:56:00.000."
I was going to write more, along the lines of what Paul just discovered
- the problem looks to be in the
com.mousepushers.date.DateParser.parse(String arg0, String arg1, Locale
arg2) method.
I'm going to set up the Date/Time tests to see if I can generate
discrepancies that are greater than one hour.
~Dave
More information about the Mulgara-dev
mailing list