Date: Tue, 1 Jun 2010 14:36:25 +0200 From: "Osipov, Michael" <michael.osipov@siemens.com> To: "freebsd-java@freebsd.org" <freebsd-java@freebsd.org> Subject: RE: Timezone behavior of Java Message-ID: <BA7F2D0AAFA236469C36CDB54DE1A07DA91624C5@DEMCHP99E24MSX.ww902.siemens.net> In-Reply-To: <201005271134.09889.jkim@FreeBSD.org> References: <BA7F2D0AAFA236469C36CDB54DE1A07DA8EFF14A@DEMCHP99E24MSX.ww902.siemens.net> <201005251501.55560.jkim@FreeBSD.org> <BA7F2D0AAFA236469C36CDB54DE1A07DA9161966@DEMCHP99E24MSX.ww902.siemens.net> <201005271134.09889.jkim@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Jung-uk Kim wrote: > On Thursday 27 May 2010 07:40 am, Osipov, Michael wrote: >> Jung-uk Kim wrote: >>> On Tuesday 25 May 2010 05:14 am, Osipov, Michael wrote: >>>> Hi folks, >>>> [...] >>>=20 >>> Works fine with OpenJDK6 b19: >>>=20 >>> [...] >>=20 >> Kim, >>=20 >> I tried the example from the supplied link. It fails: --- >8 --- >> SNIP!!! --- >8 --- >> osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ java -version >> java version "1.6.0_07" Diablo Java(TM) SE Runtime Environment >> (build 1.6.0_07-b02) Diablo Java HotSpot(TM) Server VM (build >> 10.0-b23, mixed mode) >> osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ =20 >>=20 >> I am on Diablo. >>=20 >> Is seems like a bug to me actually. >=20 > Works with Diablo as well: >=20 > hammer# setenv JAVA_HOME /usr/local/diablo-jdk1.6.0 > hammer# java -version > java version "1.6.0_07" > Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02) > Diablo Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode) > hammer# echo $TZ > TZ: Undefined variable. > hammer# javac TimeTest.java > hammer# java TimeTest > hammer# cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime > hammer# date > Thu May 27 17:26:54 CEST 2010 > Current time in milliseconds =3D 1274974109405 =3D> Thu May 27 17:28:29 > CEST 2010 Current time zone: Europe/Berlin > hammer# cp /usr/share/zoneinfo/America/New_York /etc/localtime > hammer# java TimeTest > Current time in milliseconds =3D 1274974222377 =3D> Thu May 27 11:30:22 > EDT 2010 Current time zone: America/New_York > hammer# setenv TZ Europe/Berlin > hammer# java TimeTest > Current time in milliseconds =3D 1274974302535 =3D> Thu May 27 17:31:42 > CEST 2010 Current time zone: Europe/Berlin > hammer# unsetenv TZ > hammer# echo $TZ > TZ: Undefined variable. > hammer# java TimeTest > Current time in milliseconds =3D 1274974350446 =3D> Thu May 27 11:32:30 > EDT 2010 Current time zone: America/New_York =20 Jung-uk Kim, If it works with your system then it must be something with ours. I have ab= solutely no idea what the cause might be. Any pointers? Thanks, Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA7F2D0AAFA236469C36CDB54DE1A07DA91624C5>