Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-996

FastDateFormat is case sensitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.2
    • 3.4
    • lang.time.*
    • None

    Description

      It seems that FastDateFormat is case sensitive. But it claims to be mostly compatible with SimpleDateFormat which is not.

      For example, this throws a ParseException:

      FastDateFormat.getInstance("dd-MMM-yyyy").parse("01-jan-2000");
      

      But these do not:

      SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
      sdf.parse("01-jan-2000");
      DateUtils.parse("01-jan-2000", "dd-MMM-yyyy");
      

      Attachments

        Activity

          People

            chonton Charles Honton
            drees David Rees
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: