Open GoogleCodeExporter opened 8 years ago
The android-xmlrpc code cannot decode the date that is received from the RPC
call (at least in version r15). In order to correct this change the TYPE_
DATE_TIME_ISO8601 handler within XMLRPCSerializer.deserialize to :
if (typeNodeName.equals(TYPE_DATE_TIME_ISO8601)) {
String value = parser.nextText();
try {
obj = dateFormat.parseObject(value);
} catch (ParseException e) {
try {
SimpleDateFormat ISO8601Fmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
obj = ISO8601Fmt.parse(value);
} catch (ParseException e2) {
throw new IOException("Cannot deserialize dateTime " + value);
}
}
This firstly tries the original check, then tries a variation if it fails.
Not elegant but it works :-)
Original comment by gunney.p...@gmail.com
on 9 Dec 2011 at 6:09
Original issue reported on code.google.com by
wusu...@gmail.com
on 22 Nov 2011 at 11:57