That's it! Thanks.
BST's the culprit.
When JVM timezone is BST (either from the system or
from -Duser.timezone=BST), you will get there and the Date(String)
constructor fails with an IllegalArgumentException.
I'm not sure if header parsing is also failing for you; my guess is yes.
Happens under both Java 1.4 and Java 1.5 runtimes as far as my limited
testing goes.
I suspect adding dateformatter.setTimeZone(TimeZone.getTimeZone("GMT"))
before calling format() using it
will probably fix the issue. I'll look into it later.
You may also be able to avoid this problem by running Tomcat
adding -Duser.timezone=GMT to your java options, though not sure if this is
something you want to do.
--a.
----- Original Message -----
From: "gregh" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, August 11, 2006 8:19 AM
Subject: Re: IfModifiedWeblogPageCacheFilter IllegalArgumentException
Anil,
Mozzila/Firefox. The string date = Fri Aug 11 16:11:45 BST 2006
Looks like the date format is OK.
Cheers Greg
--
View this message in context:
http://www.nabble.com/IfModifiedWeblogPageCacheFilter-IllegalArgumentException-tf2072474s12275.html#a5764136
Sent from the Roller - Dev forum at Nabble.com.