droidQuery
droidQuery copied to clipboard
Could not parse Last-Modified Header
32640-395/ E/Ajax﹕ Could not parse Last-Modified Header
java.text.ParseException: Unparseable date: "Mon, 17 Aug 2015 18:26:52 GMT" (at offset 0)
Serious?
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html 14.29 Last-Modified An example of its use is
Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT
Parsing Error caused by these lines (in Ajax and AjaxTask):
SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
Date lastModified = format.parse(h.getValue());
Looks like some additional date formats need to be allowed (or possibly missing the GMT part of the date pattern).