|
From: Kaj H. <kaj...@us...> - 2003-10-01 19:10:37
|
At 20:41 +0200 01-10-2003, Kaj Hejer wrote:
>Hi!
>
>We get the following exception on channel.getFeed("rdf") when we use
>item.setDcDate:
>
>java.lang.IllegalArgumentException: Illegal pattern character 'Z'
>
>
>This seems to be a bug in java 1.3.1. We only see this issue on java
>1.3.1, not on 1.4.1.
>
>The problems seems to be sdf2 in src/com/rsslibj/writers/GenericRSSWriter.java
From
<url:http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/time/FastDateFormat.html>:
Java 1.4 introduced a new pattern letter, 'Z', to represent time
zones in RFC822 format (eg. +0800 or -1100). This pattern letter can
be used here (on all JDK versions).
-Kaj :)
|