Skip to content
Snippets Groups Projects
Commit 4922618e authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix copy/paste mistake

parent c7a24203
No related branches found
No related tags found
Loading
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment