From owner-freebsd-questions Fri Aug 25 21:44:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from garfield.bmk.com.au (bmkind.lnk.telstra.net [139.130.51.118]) by hub.freebsd.org (Postfix) with ESMTP id 6C73F37B422 for ; Fri, 25 Aug 2000 21:44:48 -0700 (PDT) Received: from localhost (brendan@localhost) by garfield.bmk.com.au (8.9.3/8.9.3) with SMTP id AAA00353; Sat, 26 Aug 2000 00:44:55 -0400 (EDT) (envelope-from brendan@bmk.com.au) Date: Sat, 26 Aug 2000 14:44:54 +1000 (XYZ) From: Brendan Kosowski To: Greg Lehey Cc: FreeBSD Questions Subject: Re: Setting a non-standard timezone. In-Reply-To: <20000826121702.H52219@wantadilla.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Getting back to my hypothetical XYZ timezone which is 11 hours ahead of GMT, the following works very well : tzsetup /usr/share/zoneinfo/posixrules and at the top of the /etc/rc script : TZ="XYZ-11"; export TZ P.S.- After playing with the GMT+.. and GMT-.. settings and then using tzsetup to go back to EST (Austalia/Melbourne), the clock now thinks it is daylight savings. A mystery to me... On Sat, 26 Aug 2000, Greg Lehey wrote: > On Saturday, 26 August 2000 at 13:26:25 +1100, Brendan Kosowski wrote: > > > > How do I set the systems default timezone to a non-standard timezone ? > > > > Eg. if I live in zone XYZ and we are 11 hours ahead of GMT. > > *and* if the system doesn't know about it, *and* if you don't have > daylight savings time... > > ... then you do: > > # cp /usr/share/zoneinfo/Etc/GMT+11 /etc/timezone > > It's almost never necessary to do this, though, and it's more likely > that you'll get things wrong. For example, your message now comes > from bmkind.lnk.telstra.net, which is connected to > Ethernet0.lon12.Melbourne.telstra.net. The time zone in Melbourne is > Australia/Melbourne, and the time in Melbourne is currently 10 hours > ahead of UTC. It won't change to 11 hours ahead until tomorrow > morning. I suppose it's possible that you're on your own island > somewhere out in the Tasman and connecting via PPP to Telstra in > Melbourne, but I suspect it's more likely that you've jumped the gun > on the time zone change. > > If you use the correct time zone file, this change will be automatic; > otherwise you'll have to be sitting there next to the machine at 2 am > tomorrow morning in order to do the copy. > > > 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. > > This is very much a second-best choice. > > Greg > -- > When replying to this message, please copy the original recipients. > For more information, see http://www.lemis.com/questions.html > 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