I'm receiving a crash from a single device when it tries to parse a date
class DateTimeUtils {
public static DateTime toDateTime(String value) {
return DateTime.parse(value, DateTimeFormat.forPattern("EEE, d MMM yyyy HH:mm:ss Z"));
}
}
Stack trace
Caused by java.lang.IllegalArgumentException: Invalid format: "Mon, 29 Oct 2018 15:17:19 +0000"
at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:945)
at org.joda.time.DateTime.parse(DateTime.java:160)
at com.example.app.DateTimeUtils.toDateTime(DateTimeUtils.java:58)
Any ideas?