Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 1997 13:13:31 +0200 (MET DST)
From:      Josef Belkovics <belkovic@albert.osu.cz>
To:        Jamie Rishaw <jamie@intuition.iagnet.net>
Cc:        freebsd-isp@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG
Subject:   Re: timezone
Message-ID:  <Pine.BSF.3.95q.970721124330.310B-100000@albert.osu.cz>
In-Reply-To: <199707191820.OAA16843@intuition.iagnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970721124330.310B-100000>