Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5DE45200B87 for ; Mon, 19 Sep 2016 10:49:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5C69B160ADF; Mon, 19 Sep 2016 08:49:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A29BD160ABC for ; Mon, 19 Sep 2016 10:49:21 +0200 (CEST) Received: (qmail 19598 invoked by uid 500); 19 Sep 2016 08:49:20 -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 19573 invoked by uid 99); 19 Sep 2016 08:49:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 08:49:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9E4812C0D58 for ; Mon, 19 Sep 2016 08:49:20 +0000 (UTC) Date: Mon, 19 Sep 2016 08:49:20 +0000 (UTC) From: "Benedikt Ritter (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (LANG-1267) FastDateFormat does not support timezone X/XX/XXX in SimpleDateFormat MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Sep 2016 08:49:22 -0000 [ https://issues.apache.org/jira/browse/LANG-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benedikt Ritter resolved LANG-1267. ----------------------------------- Resolution: Cannot Reproduce This works with the current code base. See commit bdb074610c87a210ea4c0d91d579cb4558f4b19f > FastDateFormat does not support timezone X/XX/XXX in SimpleDateFormat > --------------------------------------------------------------------- > > Key: LANG-1267 > URL: https://issues.apache.org/jira/browse/LANG-1267 > Project: Commons Lang > Issue Type: Bug > Components: lang.time.* > Affects Versions: 3.3.2 > Reporter: Hyukjin Kwon > > It sees {{FastDateFormat}} does not support timezone {{X}}/{{XX}}/{{XXX}} in {{SimpleDateFormat}}. > For example, > {code} > FastDateFormat.getInstance("yyyy-MM-dd'T'HH:mm:ss.SSSXXX") > {code} > throws an exception as below: > {code} > Illegal pattern component: XXX > java.lang.IllegalArgumentException: Illegal pattern component: XXX > at org.apache.commons.lang3.time.FastDatePrinter.parsePattern(FastDatePrinter.java:282) > at org.apache.commons.lang3.time.FastDatePrinter.init(FastDatePrinter.java:149) > at org.apache.commons.lang3.time.FastDatePrinter.(FastDatePrinter.java:142) > {code} > {{X}}/{{XX}}/{{XXX}} are different with {{Z}} or {{ZZ}} as described in https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html#iso8601timezone > -It supports to read all {{+0800}}, {{+08}} and {{+08:00}} whereas it seems there is no way to include those all.- > I looked though the documentation multiple times but I could not find the explicit mention about this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)