From cc95d41828e630c6632c7a45197269d5cda0e8f2 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Thu, 30 Sep 2004 06:12:17 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137941 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/time/FastDateFormatTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/org/apache/commons/lang/time/FastDateFormatTest.java b/src/test/org/apache/commons/lang/time/FastDateFormatTest.java index bff60c375..e84f69c49 100644 --- a/src/test/org/apache/commons/lang/time/FastDateFormatTest.java +++ b/src/test/org/apache/commons/lang/time/FastDateFormatTest.java @@ -34,7 +34,7 @@ import junit.textui.TestRunner; * @author Gary Gregory * @author Fredrik Westermarck * @since 2.0 - * @version $Id: FastDateFormatTest.java,v 1.10 2004/09/12 05:03:26 bayard Exp $ + * @version $Id: FastDateFormatTest.java,v 1.11 2004/09/30 06:12:17 bayard Exp $ */ public class FastDateFormatTest extends TestCase { @@ -253,10 +253,11 @@ public class FastDateFormatTest extends TestCase { /** * 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 @@ public class FastDateFormatTest extends TestCase { cal.set(1,2,2); assertEquals("0001/03/02", format.format(cal)); } - */ }