You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/04/26 15:41:06 UTC

DO NOT REPLY [Bug 39408] New: - [lang] Wrong format for date "01.01.1000"

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: commons-dev@jakarta.apache.org
        ReportedBy: abinet@gmail.com


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39408] - [lang] Wrong format for date "01.01.1000"

Posted by bu...@apache.org.
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


abinet@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From abinet@gmail.com  2006-04-26 14:50 -------


*** This bug has been marked as a duplicate of 39410 ***

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org