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

ParseException when trying to parse UTC dates with Z as zone designator using DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.4
    • Component/s: None
    • Labels:
      None

      Description

      I have the String 2013-11-18T12:48:05Z which I want to parse into a Date using DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.

      According to http://en.wikipedia.org/wiki/ISO_8601#UTC the Z at the end should be a valid abbreviation for UTC+00:00 (or UTC) and so all should be fine.

      But when I am trying to do so I get the following exception:

      java.text.ParseException: Unparseable date: "2013-11-18T12:48:05Z" does not match
      

        Attachments

          Activity

            People

            • Assignee:
              dmjones500 Duncan Jones
              Reporter:
              host Holger Stenzhorn
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: