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

FastDateFormat in 3.5 failed test of 3.3.2 while parsing 2014-12-15T19:50:00-05:00

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.5
    • None
    • lang.time.*
    • None
    • Windows7, JDK1.8U112

    Description

      FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ssZ", TimeZone.getTimeZone("GMT-05:00")).parse("2014-12-15T19:50:00-05:00");

      This will work on 3.3.2, however, when I upgraded to 3.5 it failed like this:

      Exception in thread "main" java.text.ParseException: Unparseable date: 2014-12-15T19:50:00-05:00

      This made me suprized and I have to carefully check my unit tests to see whether upgrade to 3.5 is reliable.

      Attachments

        Activity

          People

            chonton Charles Honton
            nathanael4ever@gmail.com Nathanael Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: