commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Krivoshein <mikh...@mikkri.com>
Subject [DbUtils] BasicRowProcessorTest - BUG FIX
Date Sat, 29 May 2004 11:34:44 GMT
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


Mime
View raw message