From owner-freebsd-questions@FreeBSD.ORG Fri Dec 5 02:26:15 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72CE916A4CE for ; Fri, 5 Dec 2003 02:26:15 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9419543F93 for ; Fri, 5 Dec 2003 02:26:13 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hB5APcKU095122 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Dec 2003 10:26:08 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hB5APcR5095121; Fri, 5 Dec 2003 10:25:38 GMT (envelope-from matthew) Date: Fri, 5 Dec 2003 10:25:38 +0000 From: Matthew Seaman To: Lev Klimin Message-ID: <20031205102538.GB94314@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Lev Klimin , freebsd-questions@freebsd.org References: <81225028343.20031205100219@mari-el.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fba/0zbH8Xs+Fj9o" Content-Disposition: inline In-Reply-To: <81225028343.20031205100219@mari-el.ru> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: pppd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2003 10:26:15 -0000 --Fba/0zbH8Xs+Fj9o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 05, 2003 at 10:02:19AM +0300, Lev Klimin wrote: > Good morning! >=20 > I have 4.9-release. I'm having little problem with time. I live in > Russia on Moscow-west+00 time. My clock is local. My timezome is > /usr/share/zoneinfo/Europe/Moscow. > To resolve this trouble I see following: > 1. Say FreeBSD that my clock is local. > 2. Set timezone. You mean that the CMOS clock is set to local time? That is only necessary when you have non-Unix OSes installed on the machine. The CMOS clock is also known as the BIOS clock -- it operates on battery independently of the system being up or down, and independent of whatever OS you're using. The default setting of the CMOS clock to UTC gives best results -- you should use that setting unless you have good reason not to. If your CMOS clock isn't set to UTC, you should have an empty file called /etc/wall_cmos_clock, and you need to run adjkerntz(8) occasionally to update the CMOS clock from the kernel clock (which always runs UTC) -- amongst other things this will deal with changing the clock at the beginning/end of daylight savings time. This should be handled automatically via /etc/crontab. > I used for it /stand/sysinstall. But FreeBSD think that clock is GMT, > not local. > Let's now 9:46:03 in Moscow > #date > 12:46:03 (MSK) Try using /usr/sbin/tzsetup to set the timezone -- it will be quite familiar to you from sysinstall(8). =20 > #zdump /usr/share/timezone/Europe/Moscow > /usr/share/timezone/Europe/Moscow Fri Dec 5 12:46:07 2003 MSK > #diff /etc/localtime /usr/share/timezone/Europe/Moscow >=20 > Why my FreeDSD work on GMT and not on localtime? Sounds like CMOS clock is actually running UTC. If you really have to set it to wall-clcock time, try setting the kernel clcock date/time correctly using date(1), and then run 'adjkerntz -a' to set the CMOS clock from the kernel clock. Or you can set the CMOS clock from the BIOS setup screens. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --Fba/0zbH8Xs+Fj9o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/0F0idtESqEQa7a0RAqg2AJ0f9Z4KlxzuSVn883tFhae+4IsnyACgl8Gh VQxn2BA+p6H9ajIEM2T3hOc= =EwU1 -----END PGP SIGNATURE----- --Fba/0zbH8Xs+Fj9o--