I get:
JRE:=Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_09-b05
tz:=Eastern Daylight Time
dst savings:=1
uses DST: YES
in DST now: NO

I saw that there is an update to 1.4.2_11, but that came out around 2007 I 
think.  So I would need a more recent update.  A coworker said that she updated 
her jvm and still sees the error.  However, I'm waiting for her to come in to 
work and run this script that you gave me.  Maybe it gives some different info.

When it says "in dst now", that means that JVM thinks it's not in DST or that 
the computer does not think it's in DST?


><script>
>jre=createObject("java","java.lang.System");
>JREname=jre.getProperty("java.runtime.name");
>JREversion=jre.getProperty("java.runtime.version");
>
>tz=createObject("java","java.util.TimeZone").getDefault();
>tzName=tz.getDisplayName(true,tz.LONG);
>dstSavings=tz.getDSTSavings()/3600000;
>
>writeoutput("JRE:=#JREname# #JREversion#<br>
>       tz:=#tzName#<br>dst savings:=#dstSavings#<br>
>       uses DST: #tz.useDaylightTime()#<br>
>       in DST now: #tz.inDaylightTime(now())#");
></cfscript> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354939
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to