[jira] [Commented] (LANG-1267) FastDateFormat does not support timezone X/XX/XXX in SimpleDateFormat
[ https://issues.apache.org/jira/browse/LANG-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15502766#comment-15502766 ] Hyukjin Kwon commented on LANG-1267: Thank you for your help. > 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("-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)
[jira] [Commented] (LANG-1267) FastDateFormat does not support timezone X/XX/XXX in SimpleDateFormat
[ https://issues.apache.org/jira/browse/LANG-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15502560#comment-15502560 ] Hyukjin Kwon commented on LANG-1267: Oh, I am so sorry. I use {{FastDateFormat.getInstance("-MM-dd'T'HH:mm:ss.SSSXXX")}. It wrote this wrong during testing between {{SimpleDateFormat}} and {{FastDateFormat}}. > 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 > Fix For: Patch Needed, 3.6 > > > It sees {{FastDateFormat}} does not support timezone {{X}}/{{XX}}/{{XXX}} in > {{SimpleDateFormat}}. > For example, > {code} > new FastDateFormat("-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)
[jira] [Commented] (LANG-1267) FastDateFormat does not support timezone X/XX/XXX in SimpleDateFormat
[ https://issues.apache.org/jira/browse/LANG-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15502559#comment-15502559 ] Hyukjin Kwon commented on LANG-1267: Oh, I am so sorry. I use {{FastDateFormat.getInstance("-MM-dd'T'HH:mm:ss.SSSXXX")}. It wrote this wrong during testing between {{SimpleDateFormat}} and {{FastDateFormat}}. > 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 > Fix For: Patch Needed, 3.6 > > > It sees {{FastDateFormat}} does not support timezone {{X}}/{{XX}}/{{XXX}} in > {{SimpleDateFormat}}. > For example, > {code} > new FastDateFormat("-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)
[jira] [Commented] (LANG-1267) FastDateFormat does not support timezone X/XX/XXX in SimpleDateFormat
[ https://issues.apache.org/jira/browse/LANG-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15502529#comment-15502529 ] Benedikt Ritter commented on LANG-1267: --- [~hyukjin.kwon] which constructor are you using for FastDateFormat? There is no constructor using only a single String parameter. > 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 > Fix For: Patch Needed, 3.6 > > > It sees {{FastDateFormat}} does not support timezone {{X}}/{{XX}}/{{XXX}} in > {{SimpleDateFormat}}. > For example, > {code} > new FastDateFormat("-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)
[jira] [Commented] (LANG-1267) FastDateFormat does not support timezone X/XX/XXX in SimpleDateFormat
[ https://issues.apache.org/jira/browse/LANG-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15501537#comment-15501537 ] Nathan Beyer commented on LANG-1267: It looks like 'X' has been added to master: https://git-wip-us.apache.org/repos/asf?p=commons-lang.git;a=blob;f=src/main/java/org/apache/commons/lang3/time/FastDateParser.java;h=8275ddfd2b5eade34a4a19048c1b0b869d8f1eda;hb=refs/heads/master#l600. > 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 > Fix For: Patch Needed, 3.6 > > > It sees {{FastDateFormat}} does not support timezone {{X}}/{{XX}}/{{XXX}} in > {{SimpleDateFormat}}. > For example, > {code} > new FastDateFormat("-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)
[jira] [Commented] (LANG-1267) FastDateFormat does not support timezone X/XX/XXX in SimpleDateFormat
[ https://issues.apache.org/jira/browse/LANG-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15499159#comment-15499159 ] Benedikt Ritter commented on LANG-1267: --- Patches welcome > 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 > Fix For: 3.6 > > > It sees {{FastDateFormat}} does not support timezone {{X}}/{{XX}}/{{XXX}} in > {{SimpleDateFormat}}. > For example, > {code} > new FastDateFormat("-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)