From owner-freebsd-java@FreeBSD.ORG Tue Apr 12 13:08:07 2005 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 CCCFF16A4CE for ; Tue, 12 Apr 2005 13:08:07 +0000 (GMT) Received: from mxsf23.cluster1.charter.net (mxsf23.cluster1.charter.net [209.225.28.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6525743D49 for ; Tue, 12 Apr 2005 13:08:07 +0000 (GMT) (envelope-from c0ldbyte@myrealbox.com) Received: from mxip04.cluster1.charter.net (mxip04a.cluster1.charter.net [209.225.28.134])j3CD85TE019023 for ; Tue, 12 Apr 2005 09:08:06 -0400 Received: from 24.247.253.134.gha.mi.chartermi.net (HELO eleanor.us1.wmi.uvac.net) (24.247.253.134) by mxip04.cluster1.charter.net with ESMTP; 12 Apr 2005 09:07:20 -0400 X-Ironport-AV: i="3.92,95,1112587200"; d="scan'208"; a="217849738:sNHT4283718190" Date: Tue, 12 Apr 2005 09:07:11 -0400 (EDT) From: c0ldbyte To: Christy Pang In-Reply-To: <425B3089.4080703@borderware.com> Message-ID: <20050412090100.D29688@eleanor.us1.wmi.uvac.net> References: <425AED7B.2030202@borderware.com> <20050411192952.R59262@eleanor.us1.wmi.uvac.net> <425B3089.4080703@borderware.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-java@freebsd.org Subject: Re: [Fwd: 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: Tue, 12 Apr 2005 13:08:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 11 Apr 2005, Christy Pang wrote: > c0ldbyte wrote: > >> On Mon, 11 Apr 2005, Christy Pang wrote: >> >>> >>> >>> -------- Original Message -------- >>> Subject: Re: TimeZone Defaults >>> Date: Mon, 11 Apr 2005 15:05:44 -0400 >>> From: Christy Pang >>> To: Kurt Miller >>> References: <425AA4DA.8070103@borderware.com> >>> <425AB46B.5040602@iang.org> <012401c53ec1$c164b4e0$150110ac@focus> >>> >>> >>> >>> Kurt Miller wrote: >>> >>>> Is /etc/localtime a symlink? If it is, try copying the tz file >>>> to /etc/localtime instead. >>> >>> >>> It was a symlink. Our /etc file system is a read only file system. But >>> even copy the TZ file to /etc/localtime >>> >>> md5 /etc/localtime >>> MD5 (/etc/localtime) = 370687bb78b74fc4540f6a316d8bca02 >>> root@sip-tey >>> 2:24pm # md5 /usr/share/zoneinfo/America/Toronto >>> MD5 (/usr/share/zoneinfo/America/Toronto) = >>> 370687bb78b74fc4540f6a316d8bca02 >>> >>> the result is still wrong, should be *GMT-04:00* >>> >>> $JAVA_HOME/bin/java tztest >>> >>> tz = GMT+04:00 >>> >>> Christy >>> >> >> So set the correct time zone ? > > No. The /etc/localtime file is the same as > /usr/share/zoneinfo/America/Toronto (same md5), the following code > TimeZone.getDefault().getID(); > ret. GMT+04:00 instead of GMT-04:00 . > Try setting environment variable "TZ" to your correct timezone. sorry thats what I meant to say the last time but just couldnt get it out at the moment. In t,csh(1): setenv TZ appropriate_tz_here In sh(1) and equiv: export TZ='appropriate_tz_here' TZ is a case sensitive setting as well in both shell environments. this setting can also be set through login.conf(5) using the (timezone) environment. Best of luck. --c0ldbyte - -- ( When in doubt, use brute force. -- Ken Thompson 1998 ) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F Comment: Fingerprint = D1DC 0AA4 1C4E EAD4 24EB 7E77 B261 50BA F7DF 979F iD8DBQFCW8gCsmFQuvffl58RAvaVAKCBrejpPdI8g57Or3uoUr1z6sxbaACgk9lP RISpJa5kwIq67p6e8WccWvI= =aOXC -----END PGP SIGNATURE-----