Date: Thu, 27 May 2010 13:40:56 +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: <BA7F2D0AAFA236469C36CDB54DE1A07DA9161966@DEMCHP99E24MSX.ww902.siemens.net> In-Reply-To: <201005251501.55560.jkim@FreeBSD.org> References: <BA7F2D0AAFA236469C36CDB54DE1A07DA8EFF14A@DEMCHP99E24MSX.ww902.siemens.net> <201005251501.55560.jkim@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Jung-uk Kim wrote: > On Tuesday 25 May 2010 05:14 am, Osipov, Michael wrote: >> Hi folks, >>[...] >=20 > Works fine with OpenJDK6 b19: >=20 > [...] Kim, I tried the example from the supplied link. It fails: osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ echo $TZ bash: TZ ist nicht gesetzt. osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ date Do 27 Mai 2010 12:21:59 CEST osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ javac TimeTest.java osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ java TimeTest Current time in milliseconds =3D 1274955728014 =3D> Thu May 27 10:22:08 GMT= 2010 Current time zone: GMT osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ export TZ=3D"Europe/Ber= lin" osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ date Do 27 Mai 2010 12:22:26 CEST osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ java TimeTest Current time in milliseconds =3D 1274955749029 =3D> Thu May 27 12:22:29 CES= T 2010 Current time zone: Europe/Berlin osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ export TZ=3D"Europe/Mos= cow" osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ date Do 27 Mai 2010 14:22:44 MSD osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ java TimeTest Current time in milliseconds =3D 1274955769236 =3D> Thu May 27 14:22:49 MSD= 2010 Current time zone: Europe/Moscow osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ unset TZ osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ date Do 27 Mai 2010 12:23:24 CEST osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ echo $TZ bash: TZ ist nicht gesetzt. osipovmi@blnn719x:/.amd_mnt/blnn728x/home/osipovmi$ java TimeTest Current time in milliseconds =3D 1274955817132 =3D> Thu May 27 10:23:37 GMT= 2010 Current time zone: GMT 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$ I am on Diablo. Is seems like a bug to me actually. Thanks, Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA7F2D0AAFA236469C36CDB54DE1A07DA9161966>