users@jersey.java.net

webkit date format If-Modified-Since

From: brian walsh <brian_at_bwalsh.com>
Date: Tue, 14 Apr 2009 08:14:49 -0700

We are getting the following date formats from safari clients

     If-Modified-Since Tue Apr 14 2009 05:58:52 GMT-0700 (PDT)

This causes our application to return 200 when we expected 304.

Tracing the code, it appears com.sun.jersey.core.header.HttpDateFormat
contains the following...


   /**
     * The date format pattern for ANSI C asctime().
     */
    private static final String ANSI_C_ASCTIME_DATE_FORMAT_PATTERN =
"EEE MMM d HH:mm:ss yyyy";


Shouldn't it be ...

   /**
     * The date format pattern for ANSI C asctime().
     */
    private static final String ANSI_C_ASCTIME_DATE_FORMAT_PATTERN =
"EEE MMM dd HH:mm:ss yyyy zzz";