Dateparser should now be more stable
This commit is contained in:
parent
ac72d855d0
commit
5f7a984d88
|
@ -48,6 +48,9 @@ public class SyndDateUtils {
|
|||
result = format.parse(date);
|
||||
} catch (ParseException e1) {
|
||||
e1.printStackTrace();
|
||||
Log.e(TAG, "Unable to parse feed date correctly");
|
||||
} finally {
|
||||
format.applyPattern(RFC822DAY); // apply old pattern again
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -77,6 +80,9 @@ public class SyndDateUtils {
|
|||
result = format.parse(bufStr);
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
Log.e(TAG, "Unable to parse date");
|
||||
} finally {
|
||||
format.applyPattern(RFC3339UTC);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue