Index: NNTPHandler.java
===================================================================
RCS file: /home/cvspublic/jakarta-james/src/java/org/apache/james/nntpserver/NNTPHandler.java,v
retrieving revision 1.11
diff -r1.11 NNTPHandler.java
23a24,26
> import org.apache.james.util.RFC977DateFormat;
> import org.apache.james.util.RFC2980DateFormat;
> import org.apache.james.util.SimplifiedDateFormat;
32d34
< import java.text.SimpleDateFormat;
37,38c39,40
<  * This implementation is based on IETF draft 13, posted on 2nd April '2001.
<  * URL: http://www.ietf.org/internet-drafts/draft-ietf-nntpext-base-13.txt
---
>  * This implementation is based on IETF draft 15, posted on 15th July '2002.
>  * URL: http://www.ietf.org/internet-drafts/draft-ietf-nntpext-base-15.txt
242c244
<         // draft-ietf-nntpext-base-13.txt mentions 231 in section 11.3.1, 
---
>         // draft-ietf-nntpext-base-15.txt mentions 231 in section 11.3.1, 
244c246
<         // both draft-ietf-nntpext-base-13.txt and rfc977 have only group names 
---
>         // both draft-ietf-nntpext-base-15.txt and rfc977 have only group names 
268d269
<         DateFormat df = ( date.length() == 8 ) ? DF_DATEFROM_LONG : DF_DATEFROM_SHORT;
270c271,274
<             Date dt = df.parse(date+" "+time);
---
>             StringBuffer dateStringBuffer = new StringBuffer(date);
>             dateStringBuffer.append(" ");
>             dateStringBuffer.append(time);
>             Date dt = DF_RFC977.parse(dateStringBuffer.toString());
285,286c289
<     public static final DateFormat DF_DATEFROM_LONG = new SimpleDateFormat("yyyyMMdd HHmmss");
<     public static final DateFormat DF_DATEFROM_SHORT = new SimpleDateFormat("yyMMdd HHmmss");
---
>     public static final SimplifiedDateFormat DF_RFC977 = new RFC977DateFormat();
289c292,293
<     public static final DateFormat DF_DATE = new SimpleDateFormat("yyyyMMddHHmmss");
---
>     public static final SimplifiedDateFormat DF_RFC2980 = new RFC2980DateFormat();
> 
295c299
<         String dtStr = DF_DATE.format(new Date(dt.getTime() - UTC_OFFSET));
---
>         String dtStr = DF_RFC2980.format(new Date(dt.getTime() - UTC_OFFSET));
