[Android] Fix copy/paste mistake
Geoffrey Métais
git at videolan.org
Mon Apr 18 10:00:57 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 15 16:47:15 2016 +0200| [4922618e9217b6aa0c582b71638531e0742d6507] | committer: Geoffrey Métais
Fix copy/paste mistake
> https://code.videolan.org/videolan/vlc-android/commit/4922618e9217b6aa0c582b71638531e0742d6507
---
.../main/java/de/timroes/axmlrpc/serializer/DateTimeSerializer.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/java-libs/axmlrpc/src/main/java/de/timroes/axmlrpc/serializer/DateTimeSerializer.java b/java-libs/axmlrpc/src/main/java/de/timroes/axmlrpc/serializer/DateTimeSerializer.java
index 6094fe9..be3b1cb 100644
--- a/java-libs/axmlrpc/src/main/java/de/timroes/axmlrpc/serializer/DateTimeSerializer.java
+++ b/java-libs/axmlrpc/src/main/java/de/timroes/axmlrpc/serializer/DateTimeSerializer.java
@@ -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);
}
More information about the Android
mailing list