droidQuery icon indicating copy to clipboard operation
droidQuery copied to clipboard

Could not parse Last-Modified Header

Open satels opened this issue 10 years ago • 1 comments

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

satels avatar Aug 17 '15 22:08 satels

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).

phil-brown avatar Aug 25 '15 23:08 phil-brown