Name: joT67522 Date: 10/09/97
First, my configuration:
Pentium 133MHz/40MB machine w/ Windoze NT4.0
(NT 4.0, Service Pack 3 has been applied)
JDK 1.1.4 from Sun.
The source-code to reproduce the bug(?):
// --- BEGIN source code.
import java.util.TimeZone;
class TestTimeZone
{
public static void main( String[] args)
{
System.out.println( TimeZone.getDefault( ).getID( ));
}
}
// --- END source code.
This prints "GMT" on my machine whereas my time-zone
is set to IST (Indian Standard Time). This behaviour
is repeated on all the Windoze NT4.0 machines that
I've been able to lay my hands on in my company.
This code works correctly with JDK 1.1.4 on Windoze 95.
It also works as expected on Linux 2.0.0.
I don't know whether to call it a "bug"
with JDK as it is equally likely that it is
some problem with NT. (IBM Visual Age for Java
prints "VST" with the above code!) If it is, I'm
awfully sorry to have wasted your time.
Regards,
Ranjit Mathew,
Software Engineer,
IBM Global Services India Limited.
Phone: 91-80-5262355 Extn: 2722
======================================================================