From owner-freebsd-java@FreeBSD.ORG Wed Nov 12 04:46:03 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26E2116A4CE for ; Wed, 12 Nov 2003 04:46:03 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5990843FBF for ; Wed, 12 Nov 2003 04:46:00 -0800 (PST) (envelope-from ml@FreeBSD.org.ua) Received: (from ml@localhost) by phantom.cris.net (8.12.6/8.12.6) id hACCtDHM066857; Wed, 12 Nov 2003 14:55:13 +0200 (EET) (envelope-from ml) Date: Wed, 12 Nov 2003 14:55:13 +0200 From: Alexey Zelkin To: Jonathan Chen Message-ID: <20031112145513.C66655@phantom.cris.net> References: <20031112025726.GA75356@grimoire.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20031112025726.GA75356@grimoire.chen.org.nz>; from jonc@chen.org.nz on Wed, Nov 12, 2003 at 03:57:26PM +1300 X-Operating-System: FreeBSD 4.7-STABLE i386 cc: freebsd-java@freebsd.org Subject: Re: TimeZone defaults. X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2003 12:46:03 -0000 hi, I have just checked and it works fine here. Please send PR and I'll look into this issue later. On Wed, Nov 12, 2003 at 03:57:26PM +1300, Jonathan Chen wrote: > Hi, > > This topic came up before with no resolution; and it's still present > in the latest native JDK1.4.2 port: The default TimeZone is not being > set correctly: > > 0:baldur-/tmp,3:52pm> date > Wed Nov 12 15:53:01 NZDT 2003 > 0:baldur-/tmp,3:53pm> java tztest > Greenwich Mean Time > 0:baldur-/tmp,3:53pm> java -version > java version "1.4.2-p5" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p5-root_12_nov_2003_10_06) > Java HotSpot(TM) Client VM (build 1.4.2-p5-root_12_nov_2003_10_06, mixed mode) > > Here's the code for tztest.java: > > import java.util.TimeZone; > public class tztest > { > public static void > main ( > String args []) > { > TimeZone tz = TimeZone.getDefault (); > > System.out.println (tz.getDisplayName ()); > } > } > > TimeZone.getTimeZone(String id) *does* work, so there is a workaround, > but TimeZone.getDefault() isn't picking the Host-System's TimeZone > setting. > > I'll raise a PR for it if no one here knows of a quick fix. > > Cheers. > -- > Jonathan Chen > ---------------------------------------------------------------------- > "Lots of folks confuse bad management with destiny" > - Kin Hubbard > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"