You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Serge Knystautas <se...@lokitech.com> on 2001/04/10 17:08:50 UTC

Fw: [James] bug fix of RFC822DateFormat

Alec Yu sent this quick patch sent directly to me.  Sorry I don't have time
to apply it, but if someone else could, that'd be great.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: "Alec Yu" <al...@eland.com.tw>
To: <se...@lokitech.com>
Sent: Tuesday, April 10, 2001 5:22 AM
Subject: [James] bug fix of RFC822DateFormat


> Original org.apache.james.util.RFC822DateFormat class caused
Outlook/Outlook express
> failed to parse received month of messages on non-english Windows
platforms.
>
> A fix for this non-english platforms only problem is:
>     public static String toString(Date d) {
>         if (df == null) {
>             // it was: df = new SimpleDateFormat("EE, d MMM yyyy
HH:mm:ss");
>             df = new SimpleDateFormat("EE, d MMM yyyy HH:mm:ss",
Locale.US);
>         }
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Re: [James] bug fix of RFC822DateFormat

Posted by Harmeet Bedi <hb...@yahoo.com>.
did this.

Harmeet
----- Original Message -----
From: "Serge Knystautas" <se...@lokitech.com>
To: <ja...@jakarta.apache.org>
Sent: Tuesday, April 10, 2001 8:08 AM
Subject: Fw: [James] bug fix of RFC822DateFormat


> Alec Yu sent this quick patch sent directly to me.  Sorry I don't have
time
> to apply it, but if someone else could, that'd be great.
>
> Serge Knystautas
> Loki Technologies
> http://www.lokitech.com/
> ----- Original Message -----
> From: "Alec Yu" <al...@eland.com.tw>
> To: <se...@lokitech.com>
> Sent: Tuesday, April 10, 2001 5:22 AM
> Subject: [James] bug fix of RFC822DateFormat
>
>
> > Original org.apache.james.util.RFC822DateFormat class caused
> Outlook/Outlook express
> > failed to parse received month of messages on non-english Windows
> platforms.
> >
> > A fix for this non-english platforms only problem is:
> >     public static String toString(Date d) {
> >         if (df == null) {
> >             // it was: df = new SimpleDateFormat("EE, d MMM yyyy
> HH:mm:ss");
> >             df = new SimpleDateFormat("EE, d MMM yyyy HH:mm:ss",
> Locale.US);
> >         }
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-dev-help@jakarta.apache.org


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org