new java dst bug
Nathan Meyers
nmeyers at javalinux.net
Fri Mar 9 17:11:35 EST 2007
Danny wrote:
> 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?
There's a DST bug with parsing of times with timezones. It's not new (it
predates the current DST madness by a long time), but it's gotten a lot
of attention lately:
http://sunsolve.sun.com/search/document.do?assetkey=1-26-102836-1&searchclause=
Nathan
>
> -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.
More information about the Discuss
mailing list