commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevencasw...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/time DateUtils.java
Date Sun, 10 Aug 2003 13:32:16 GMT
stevencaswell    2003/08/10 06:32:16

  Modified:    lang/src/java/org/apache/commons/lang/time DateUtils.java
  Log:
  update parseCVS with default English locale
  
  Revision  Changes    Path
  1.11      +2 -14     jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateUtils.java
  
  Index: DateUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/time/DateUtils.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DateUtils.java	6 Aug 2003 21:13:39 -0000	1.10
  +++ DateUtils.java	10 Aug 2003 13:32:16 -0000	1.11
  @@ -418,23 +418,11 @@
        * @throws IllegalArgumentException if the date cannot be parsed
        */
       public static Calendar parseCVS(String dateStr) {
  -        return parseCVS(dateStr, Locale.getDefault());
  -    }
  -
  -    /**
  -     * <p>Parses a date string formatted in CVS format.</p>
  -     * 
  -     * @param dateStr  the date to parse
  -     * @param locale  the locale to parse in
  -     * @return the parsed date
  -     * @throws IllegalArgumentException if the date is null or cannot be parsed
  -     */
  -    public static Calendar parseCVS(String dateStr, Locale locale) {
           if (dateStr == null) {
               throw new IllegalArgumentException("The date must not be null");
           }
           //Get the symbol names
  -        DateFormatSymbols symbols = new DateFormatSymbols(locale);
  +        DateFormatSymbols symbols = new DateFormatSymbols(Locale.ENGLISH);
   
           //Prep the string to parse
           String value = dateStr.toLowerCase().trim();
  
  
  

Mime
View raw message