1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Fixed parsing of dateformats in WebDAV responses

This commit is contained in:
David A. Velasco 2014-07-01 10:57:31 +02:00
parent 48d43b576c
commit f323dda044

View File

@ -58,7 +58,7 @@ public class WebdavUtils {
Date returnDate = null; Date returnDate = null;
for (int i = 0; i < DATETIME_FORMATS.length; ++i) { for (int i = 0; i < DATETIME_FORMATS.length; ++i) {
try { try {
returnDate = new SimpleDateFormat (DATETIME_FORMATS[i]).parse(date); returnDate = new SimpleDateFormat (DATETIME_FORMATS[i], Locale.US).parse(date);
return returnDate; return returnDate;
} catch (ParseException e) { } catch (ParseException e) {
} }