Mats Petersson <[EMAIL PROTECTED]> writes:
> Hello!
>
> I recently downloaded JDK 1.1.6 v2, and I have problems getting it
> correctly interpret the timezone setting on my machine. Since I live
> in Sweden, my timezone is "MET DST", however this seems to confuse
> java. The time returned from Date() is 2 1/2 hours ahead of the local
> time (?). However, if I make the timezone GMT or UTC or something more
> "common", it seems to work as it should. Still, it doesn't recognize
> any offset, i.e. "GMT +2" or something similar.
>
> Is this a linux specific quirk, or is it a general bug in java?
It's a sun bug. It has been fixed in JDK-1.2b4.
You might want to try "TZ=ECT java DateTest".
Jürgen
--
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802