Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new java dst bug



this morning we were told that there were problems with the way the EST,
HST, and MST jre/lib/zi files handled the time change. these files were
patched in the latest sun java patch bundle.

as we're looking at this further here, if your timezone is set to EST,
that means you don't recognize dst.  this used to work for the folks in
Indiana, but I thought they were forced to change like the rest of us
and only Hawaii and parts of Arizona don't change.

at this point, i don't know why i'm doing any of things i'm doing. just
that management says do it.

-----Original Message-----
From: discuss-bounces at blu.org [mailto:discuss-bounces at blu.org] On Behalf
Of Danny
Sent: Friday, March 09, 2007 5:07 PM
To: discuss at blu.org
Subject: Re: new java dst bug

Code:
-------
public class Test
{
    public static void main(String[] args)
    {
        System.out.println(new java.util.Date());
    }
}
-------

This file must be named Test.java
To compile, type "javac Test.java -source 1.3 -target 1.3"
   (this should allow it to be run on any version of java beginning as
low as 1.3) To run, type "java Test"

You should compile it with the version you plan on testing

I wasn't aware of a "new bug in java's dst patch"...how new are we
talking?

-Danny Robert

Quoting "Boland, John" <jboland at citistreetonline.com>:

> folks,
>
> i'm sure by now, everyone is aware of the NEW bug found in java's dst 
> patch.
>
> i need the dumbest, simplest, easiest java code to run on several 
> different versions of java on several different o/s'es to display the 
> current time.
>
> my plan is to load this on a server, change the time to 1:59 AM sun, 
> run the code, wait 2 minutes and run it again.  hopefully, the result 
> will be 3:01 AM sun.  i know this is a nasty, brute-force way of 
> testing this. but, i can't think of any other way.  there have been 
> several tools to test the time by checking the timezone files 
> directly.  at this point, i don't trust ANY of them.  i just want to 
> see the current time via java.
>
> if someone could post this, i'm sure there are a lot of others in the 
> same boat that i'm in.
>
> tia...
>
>
> --
> This message has been scanned for viruses and dangerous content by 
> MailScanner, and is believed to be clean.
>
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://lists.blu.org/mailman/listinfo/discuss
>



--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

_______________________________________________
Discuss mailing list
Discuss at blu.org
http://lists.blu.org/mailman/listinfo/discuss

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org