From owner-freebsd-questions Mon Jul 21 04:11:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id EAA07151 for questions-outgoing; Mon, 21 Jul 1997 04:11:55 -0700 (PDT) Received: from albert.osu.cz (albert.osu.cz [195.113.106.11]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA07121; Mon, 21 Jul 1997 04:11:32 -0700 (PDT) Received: from localhost (belkovic@localhost) by albert.osu.cz (8.8.5/8.6.12) with SMTP id NAA00375; Mon, 21 Jul 1997 13:13:31 +0200 (MET DST) Date: Mon, 21 Jul 1997 13:13:31 +0200 (MET DST) From: Josef Belkovics To: Jamie Rishaw cc: freebsd-isp@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: timezone In-Reply-To: <199707191820.OAA16843@intuition.iagnet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sat, 19 Jul 1997, Jamie Rishaw wrote: > This is a really dumb question, but I know it's probably an FAQ. > > How do you change the time zone on a machine? I had a disk die on a server > last week.. I brought up a new system, and am synching time via NTP.. the > problem is, it's 5 hours off.. (exactly 5 hours off) ;) I think the GMT > offset is hosed.. where can I look to fix this? > > Thanks ;) > > -jamie > -- > jamie g.k. rishaw dal/efnet:gavroche Internet Access Group > 'whois JGR2' for PGP keyID/Fingerprint __ Network Operations/TSD > DID:216.902.5455 FAX:216.623.3566 \/ 800.637.4IAGx5455 > "The machine's fine. It just doesn't work." -dan@nic.net > Copy appropriate file from /usr/share/zoneinfo into /etc and rename it as /etc/localtime. You need also null file (touch ->) /etc/wall_cmos_clock + run adjkerntz -i. Both are for you set up in /etc/rc (or /etc/rc.local (2.2.2), sysconfig (before 2.2.2); try grep adjkerntz /etc/rc*). You can also try /stand/sysinstall. See also man zic - time zone compiler (but you probably haven't source for zic). Thing isn't complicated. You can simply do it in various ways. Most simply is to use /stand/sysinstall. Here you have source for zic and timezone MET: #/osu/etc/xMET # Rule NAME FROM TO TYPE IN ON AT SAVE LETTER Rule M-Eur 1986 max - Mar lastSun 2:00s 1:00 " DST" Rule M-Eur 1986 max - Oct lastSun 2:00s 0 - # Zone NAME GMTOFF RULES/SAVE FORMAT [UNTIL] Zone MET 1:00 M-Eur MET%s # Tom Hoffman says that MET is also known as Central European Time Link MET CET #eof Josef Belkovics