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

Several predefined ISO FastDateFormats in DateFormatUtils are incorrect

    XMLWordPrintableJSON

Details

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

    Description

      Formats ISO_TIME_FORMAT, ISO_TIME_TIME_ZONE_FORMAT prepend a T but this is not correct. Sole time is never prepended by defintion. T is used only when date and time are given.

      The Javadocs of ISO_TIME_NO_T_FORMAT, ISO_TIME_NO_T_FORMAT are in correct too because they say: "This pattern does not comply with the formal ISO8601 specification as the standard requires the 'T' prefix for times."

      You might want to read Markus Kuhn's reference on that.

      A solution would be remove the first two and rename the second two by dropping the NO_T in the name.

      Attachments

        Activity

          People

            chonton Charles Honton
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: