Dateparser should now be more stable

This commit is contained in:
daniel oeh 2012-07-18 17:34:43 +02:00
parent ac72d855d0
commit 5f7a984d88
1 changed files with 7 additions and 1 deletions

View File

@ -48,6 +48,9 @@ public class SyndDateUtils {
result = format.parse(date); result = format.parse(date);
} catch (ParseException e1) { } catch (ParseException e1) {
e1.printStackTrace(); 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); result = format.parse(bufStr);
} catch (ParseException e) { } catch (ParseException e) {
e.printStackTrace(); e.printStackTrace();
Log.e(TAG, "Unable to parse date");
} finally {
format.applyPattern(RFC3339UTC);
} }
} }