commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang/time FastDateFormatTest.java
Date Thu, 30 Sep 2004 06:12:17 GMT
bayard      2004/09/29 23:12:17

  Modified:    lang/src/test/org/apache/commons/lang/time
                        FastDateFormatTest.java
  Log:
  I am such an idiot. It is dd for day of month, not DD. No surprise it was printing 366 and
not 31 for the last day of the year. Excuse me while I garotte myself.
  
  Revision  Changes    Path
  1.11      +3 -3      jakarta-commons/lang/src/test/org/apache/commons/lang/time/FastDateFormatTest.java
  
  Index: FastDateFormatTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/time/FastDateFormatTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- FastDateFormatTest.java	12 Sep 2004 05:03:26 -0000	1.10
  +++ FastDateFormatTest.java	30 Sep 2004 06:12:17 -0000	1.11
  @@ -253,10 +253,11 @@
       /**
        * testLowYearPadding showed that the date was buggy
        * This test confirms it, getting 366 back as a date
  +     */
        // TODO: Fix this problem
       public void testSimpleDate() {
           Calendar cal = Calendar.getInstance();
  -        FastDateFormat format = FastDateFormat.getInstance("yyyy/MM/DD");
  +        FastDateFormat format = FastDateFormat.getInstance("yyyy/MM/dd");
   
           cal.set(2004,11,31);
           assertEquals("2004/12/31", format.format(cal));
  @@ -265,5 +266,4 @@
           cal.set(1,2,2);
           assertEquals("0001/03/02", format.format(cal));
       }
  -    */
   }
  
  
  

---------------------------------------------------------------------
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