r500423 | eross | 2007-01-26 18:14:25 -0600 (Fri, 26 Jan 2007) | 1 line

Bug 41372 - Added Locale to constructor, use Locale.ENGLISH in tests


Index: src/java/org/apache/log4j/helpers/DateTimeDateFormat.java
===================================================================
18a19
> import java.util.Locale;
55a57,65
>     /**
>      * Create a new instance of DateTimeDateFormat.
>      *
>      * @param locale used in conversion, may not be null.
>      */
>     public DateTimeDateFormat(Locale locale) {
>       super(PATTERN, locale);
>     }
>
Index: src/java/org/apache/log4j/helpers/AbsoluteTimeDateFormat.java
===================================================================
24a25
> import java.util.Locale;
73a75,82
>    *  Create a new instance of AbsoluteTimeDateFormat with a locale.
>    * @param pattern
>    */
>   public AbsoluteTimeDateFormat(String pattern, Locale locale) {
>     format = new SimpleDateFormat(pattern, locale);
>   }
>
>   /**
114a124
>
Index: tests/src/java/org/apache/log4j/helpers/DateLayoutTest.java
===================================================================
26a27
> import java.util.Locale;
252c253
<       DateFormat format = new DateTimeDateFormat();
---
>       DateFormat format = new DateTimeDateFormat(Locale.ENGLISH);


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to