From owner-freebsd-java Wed Feb 13 7: 7:15 2002 Delivered-To: freebsd-java@freebsd.org Received: from corb.mc.mpls.visi.com (corb.mc.mpls.visi.com [208.42.156.1]) by hub.freebsd.org (Postfix) with ESMTP id E77E637B402 for ; Wed, 13 Feb 2002 07:07:07 -0800 (PST) Received: from [209.98.155.26] (envy.blackcore.com [209.98.155.26]) by corb.mc.mpls.visi.com (Postfix) with ESMTP id 4585F81A5 for ; Wed, 13 Feb 2002 09:07:07 -0600 (CST) User-Agent: Microsoft-Entourage/10.0.0.1331 Date: Wed, 13 Feb 2002 09:07:07 -0600 Subject: Re: Incorrect timestamps with native 1.3.1 jdk? From: Timothy Kettering To: FreeBSD-Java Message-ID: In-Reply-To: <3C6A2519.2030401@noos.fr> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > Just read the sources of java.util.Date / java.util.TimeZone, and you'll > see as i did how much date and timezones handling sucks in the java > standard library. > Yeah, I was warned by many senior java developers that the Date/TimeZone stuff was pretty treacherous and not to even speak the name of GregorianCalendar! I've made some fixes in my code that ensure that the proper timezone is set before the program does it calculations. However, when I did the devlopment of this application on my workstation, which is Mac OS X, the JVM had no problem with the dates, picked up the correct timezone that my system was set to, and worked just fine. It was only when I migrated the application over to the freeBSD server that the timezone issue reared its ugly head. So I guess what I'm asking is why the JVM on OS X would be able to pick up the timezone information from the system without any problem, but not the freeBSD JVM? And the companion question - should it be done? -- Tim Kettering http://www.blackcore.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message