DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39408>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39408 Summary: [lang] Wrong format for date "01.01.1000" Product: Commons Version: 2.1 Final Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Lang AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] FastDateFormat.getInstance("dd.MM.yyyy").format() returns "01.01.01000" instead of"01.01.1000" public void testFastDateFormatter() throws ParseException { final String dateString = "01.01.1000"; final SimpleDateFormat simpleDateFormatter = new SimpleDateFormat("dd.MM.yyyy"); final FastDateFormat fastDateFormatter = FastDateFormat.getInstance("dd.MM.yyyy"); final Date date = simpleDateFormatter.parse( dateString ); assertEquals(simpleDateFormatter.format( date ), dateString, simpleDateFormatter.format( date )); assertEquals(fastDateFormatter.format( date ), dateString, fastDateFormatter.format( date )); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
