From owner-freebsd-java Wed May 19 2:30:30 1999 Delivered-To: freebsd-java@freebsd.org Received: from fgw2.netvalue.fr (cegetel-gw.netvalue.fr [195.115.44.161]) by hub.freebsd.org (Postfix) with ESMTP id 846C114EA6 for ; Wed, 19 May 1999 02:30:25 -0700 (PDT) (envelope-from erwan@netvalue.fr) Received: (from bin@localhost) by fgw2.netvalue.fr (8.9.3/8.8.8) id LAA35620 for ; Wed, 19 May 1999 11:30:23 +0200 (CEST) (envelope-from erwan@netvalue.fr) X-Authentication-Warning: fgw2.netvalue.fr: bin set sender to using -f Received: from (etoile.netvalue.fr [192.168.1.11]) by fgw2.netvalue.fr via smap (V2.1) id xma035616; Wed, 19 May 99 11:30:17 +0200 Received: from netvalue.fr ([192.168.1.100]) by etoile.netvalue.fr (Netscape Messaging Server 3.6) with ESMTP id AAA18A5; Wed, 19 May 1999 11:30:16 +0200 Message-ID: <374284A8.B4479EBD@netvalue.fr> Date: Wed, 19 May 1999 11:30:16 +0200 From: Erwan Arzur Organization: NetValue S.A. X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en, fr-FR MIME-Version: 1.0 To: Dann Lunsford Cc: java@FreeBSD.ORG Subject: Re: Time and jdk 1.1.7 References: <37424635.3B968743@greycat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > A quick search of the archive turned up one reference to the TimeZone > class being > broken, so... Is there a workaround or a fix available? I'd class this > as more > an annoyance than anything. The interesting thing is that the author > reports that > setting TZ to PDT works fine on a 2.2.8-R system. > This is a known problem with jdk 1.1 on all platforms : see http://developer.javasoft.com/developer/bugParade/bugs/4069784.html Here is the workaround for me, living in France. My system TZ is CEST under FreeBSD and "MET DST" under Solaris. i've aliased java to "java -Duser.timezone=ECT", and put that in all my scripts. This made all my date handling work much better ! :-) Take a look at the sources in java.util.* to get an appropriate value for your own time zone ... If you take a look at the duplicate bugs, you'll see that most developpers call that a "nightmare", and that the javasoft guys sounds much like Microsoft's : "it's a feature" :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message