You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Mikhail Krivoshein <mi...@mikkri.com> on 2004/05/29 13:34:44 UTC

[DbUtils] BasicRowProcessorTest - BUG FIX

Hello all,

There is bug in BasicRowProcessorTest unit-test.
When I'm running this test on my PC with Russian windows installed 
SimpleDateFormat fails to parse
"Sun Mar 14 15:19:15 MST 2004" because it is expecting to see russian 
words instead these english words.

To solve bug these lines:

    private static final DateFormat datef =
        new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");

need to be replaced by these lines:

    private static final DateFormat datef =
        new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US);

Best regards,
Mikhail Krivoshein




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


Re: [DbUtils] BasicRowProcessorTest - BUG FIX

Posted by David Graham <gr...@yahoo.com>.
This is fixed in CVS now.

Thanks,
David

--- Mikhail Krivoshein <mi...@mikkri.com> wrote:
> Hello all,
> 
> There is bug in BasicRowProcessorTest unit-test.
> When I'm running this test on my PC with Russian windows installed 
> SimpleDateFormat fails to parse
> "Sun Mar 14 15:19:15 MST 2004" because it is expecting to see russian 
> words instead these english words.
> 
> To solve bug these lines:
> 
>     private static final DateFormat datef =
>         new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
> 
> need to be replaced by these lines:
> 
>     private static final DateFormat datef =
>         new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US);
> 
> Best regards,
> Mikhail Krivoshein
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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