Commit 4922618e authored by Geoffrey Métais's avatar Geoffrey Métais

Fix copy/paste mistake

parent c7a24203
......@@ -26,9 +26,8 @@ public class DateTimeSerializer implements Serializer {
public Object deserialize(String dateStr) throws XMLRPCException {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
String format = "2001-07-04T12:08:56.235-0700";
try {
return df.parse(format);
return df.parse(dateStr);
} catch (ParseException e) {
throw new XMLRPCException("Unable to parse given date.", e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment