Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D38411EE2 for ; Fri, 2 May 2014 08:17:20 +0000 (UTC) Received: (qmail 56033 invoked by uid 500); 2 May 2014 08:17:15 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 55860 invoked by uid 500); 2 May 2014 08:17:15 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 55843 invoked by uid 99); 2 May 2014 08:17:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2014 08:17:14 +0000 Date: Fri, 2 May 2014 08:17:14 +0000 (UTC) From: "Benedikt Ritter (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LANG-1000) ParseException when trying to parse UTC dates with Z as zone designator using DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-1000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benedikt Ritter updated LANG-1000: ---------------------------------- Fix Version/s: Patch Needed > ParseException when trying to parse UTC dates with Z as zone designator using DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT > --------------------------------------------------------------------------------------------------------------------------- > > Key: LANG-1000 > URL: https://issues.apache.org/jira/browse/LANG-1000 > Project: Commons Lang > Issue Type: Bug > Affects Versions: 3.3.2 > Reporter: Holger Stenzhorn > Priority: Minor > Fix For: Patch Needed > > > 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: > {code} > java.text.ParseException: Unparseable date: "2013-11-18T12:48:05Z" does not match > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)