How should I update a Debian system so java programs know about the
new Daylight Saving Time rules in the US?

I know about the OS data files:

For a Linux box, you can check particular dates this way:
     vanzandt:~$ date --date="10 March 2007 15:00 UTC"
     Sat Mar 10 10:00:00 EST 2007
     vanzandt:~$ date --date="11 March 2007 15:00 UTC"
     Sun Mar 11 11:00:00 EDT 2007

This prints DST transitions:
     zdump -v `cat /etc/timezone`|egrep '(2006|2007)'

On a testing or unstable system, the relevant data files are in the
tzdata package.
 
However, java doesn't trust the OS to get time zone and DST
calculations right, so it has to be updated separately.  

To check it, I downloaded TimeTest.jar from IBM:

http://www-1.ibm.com/support/docview.wss?rs=3068&uid=swg21251761#validation

     sphinx:~/admin$ java -classpath . -jar TimeTest.jar
     ...
     Western Australia 2006 (tested against Australia/Perth): Update not 
included
     Brazil 2006 (tested against America/Sao_Paulo): Update not included
     US 2007 (tested against America/New_York): Update not included
     Canada 2007 (tested against America/Vancouver): Update not included
     Bermuda 2007 (tested against Atlantic/Bermuda): Update not included
     Bahamas 2007 (tested against America/Nassau): Update not included
     ...
     
I also tried CheckDST from

http://www.theserverside.com/tt/articles/article.tss?l=CountdownDST2007
 
     sphinx:~/admin$ javac CheckDST.java
     sphinx:~/admin$ java CheckDST
     Testing JRE TimeZone DST transitioning for: PST
     FAILURE for DST entry date 03/11/2007
     FAILURE for DST exit date 11/04/2007

I have one system with kaffe (kaffe_2%3a1.1.5-3_all.deb) and another
with gij (gij-4.1_4.1.1-9_i386.deb), but both fail these tests.  

Are updates available?  Should I just use TZupdater from Sun?
     http://java.sun.com/javase/tzupdater_README.html

               - Jim Van Zandt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to