From owner-freebsd-questions Fri Aug 25 19:54:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 3166A37B422 for ; Fri, 25 Aug 2000 19:54:28 -0700 (PDT) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id MAA57303; Sat, 26 Aug 2000 12:24:15 +0930 (CST) (envelope-from grog) Date: Sat, 26 Aug 2000 12:24:15 +0930 From: Greg Lehey To: Alan Clegg Cc: Brendan Kosowski , FreeBSD Questions Subject: Re: Setting a non-standard timezone. Message-ID: <20000826122415.I52219@wantadilla.lemis.com> References: <20000826024138.B37521@diskfarm.firehouse.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20000826024138.B37521@diskfarm.firehouse.net>; from abc@bsdi.com on Sat, Aug 26, 2000 at 02:41:38AM +0000 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 26 August 2000 at 2:41:38 +0000, Alan Clegg wrote: > Unless the network is lying to me again, Brendan Kosowski said: > >> I know how to do this at the user level ( by setting the TZ variable in >> the .profile to a posix compliant format, eg. XYZ-11 ) but I do not know >> how to do this at the system default level. > > Look in /usr/share/zoneinfo, pick the right one and either copy or link > it to /etc/localtime > > Now, if you have a non-standard timezone (one that is not represented in > any of the /usr/share/zoneinfo), I can't help... There are a couple of isolated cases of this. The South-East of Western Australia, between Caiguna and the South-Australian border, is 8 hours and 45 minutes ahead of UTC, but no time zone file exists for it. You can make your own like this: 1. Add the following information to /usr/src/share/zoneinfo/australasia: --- australasia 2000/03/29 14:01:42 1.15 +++ australasia 2000/08/13 04:42:51 @@ -34,6 +34,10 @@ 8:00 - WST 1991 Nov 17 2:00s 8:00 1:00 WST 1992 Mar Sun>=1 2:00s 8:00 - WST + +Zone Australia/Nullarbor 7:43:24 - LMT 1895 Dec + 8:45 - NST + # Queensland # # From Alex Livingston (1996-11-01): 2. In the same directory, do a 'make install'. 3. Do # cp /usr/share/zoneinfo/Australia/Nullarbor /etc/localtime Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message