From owner-freebsd-java@FreeBSD.ORG Tue Jun 1 12:36:29 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64D991065670 for ; Tue, 1 Jun 2010 12:36:29 +0000 (UTC) (envelope-from michael.osipov@siemens.com) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by mx1.freebsd.org (Postfix) with ESMTP id EBB1B8FC18 for ; Tue, 1 Jun 2010 12:36:28 +0000 (UTC) Received: from mail1.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id o51CaRaU012491 for ; Tue, 1 Jun 2010 14:36:27 +0200 Received: from DEMCHP99ET1MSX.ww902.siemens.net (demchp99et1msx.ww902.siemens.net [139.25.131.180]) by mail1.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id o51CaRLV004376 for ; Tue, 1 Jun 2010 14:36:27 +0200 Received: from DEMCHP99E24MSX.ww902.siemens.net ([169.254.1.144]) by DEMCHP99ET1MSX.ww902.siemens.net ([139.25.131.180]) with mapi; Tue, 1 Jun 2010 14:36:27 +0200 From: "Osipov, Michael" To: "freebsd-java@freebsd.org" Date: Tue, 1 Jun 2010 14:36:25 +0200 Thread-Topic: Timezone behavior of Java Thread-Index: Acr9shIci8FG4Rn+RuOP7NKG58fOVAD1O4og Message-ID: References: <201005251501.55560.jkim@FreeBSD.org> <201005271134.09889.jkim@FreeBSD.org> In-Reply-To: <201005271134.09889.jkim@FreeBSD.org> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: Timezone behavior of Java X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2010 12:36:29 -0000 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