From owner-freebsd-questions@FreeBSD.ORG Wed Aug 23 06:28:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 74E7016A4DA for ; Wed, 23 Aug 2006 06:28:05 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0FC443D45 for ; Wed, 23 Aug 2006 06:28:04 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.6/8.13.6) with ESMTP id k7N6RcET051417; Wed, 23 Aug 2006 07:27:38 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk k7N6RcET051417 Message-ID: <44EBF553.90007@infracaninophile.co.uk> Date: Wed, 23 Aug 2006 07:27:31 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: jdow References: <68E7556C-F8C5-444D-8C8F-5C3AF3F2054A@rawb.net> <10fb01c6c671$76eebf80$0225a8c0@Wednesday> In-Reply-To: <10fb01c6c671$76eebf80$0225a8c0@Wednesday> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig28D8F8FDB9B20562614F9C02" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 23 Aug 2006 07:27:58 +0100 (BST) X-Virus-Scanned: ClamAV 0.88.4/1714/Wed Aug 23 03:29:05 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING,NO_RELAYS autolearn=ham version=3.1.4 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Time zone isn't displaying right one with 'tzsetup' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 06:28:05 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig28D8F8FDB9B20562614F9C02 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable jdow wrote: > From: "Robert Gabaree" >> I tried to update my new server to the new time zone by running=20 >> 'tzsetup' and selecting Eastern. However, instead of showing 11:45,=20 >> it shows 6:45 - 5 hours later. I even tried to do a 'cp /usr/share/ >> zoneinfo/EST5EDT /etc/localtime" but it didn't help. What can I do=20 >> to fix it? >=20 > What time does your BIOS say? And did you tell Linux which time zone > the BIOS thinks it is in? >=20 > There is a UTC=3Dtrue or UTC=3Dfalse line in /etc/sysconfig/clock you > might investigate. Yeah, but this is *freebsd*-questions, so telling the OP how to fix a Linux box is not very coherent. You could well be exactly right on the diagnosis of the problem though: the CMOS clock on the motherboard can either be set to run UTC or it can be set to the local wall-clock time. The first (UTC) is preferred by Uni= x machines, the second by Windows. FreeBSD will cope with a CMOS clock set to run using the local wall clock time in order to play nice on multi-boot systems, but you have to tell the system it's operating in that mode. To change the setting, run /usr/sbin/tzsetup and when asked about the CMO= S clock on the first screen, choose 'Yes' if your machine runs FreeBSD alwa= ys or 'No' if you occasionally boot into Windows. Then choose your local timezone from the menus. If, after doing that, there is a zero length fil= e /etc/wall_cmos_clock then you have set your system to use a CMOS clock se= t to wall clock time. See adjkerntz(1) for the full story. After running tzsetup, either restart ntpd to force your machine to step the clock a long way to sync with the server, or set the date/time manual= ly as Greg described upthread. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig28D8F8FDB9B20562614F9C02 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE6/Va8Mjk52CukIwRCGkYAJ4pmADwEVxTMiivjtG5BkEwAmtwGQCcDlA5 XXseX2OVcLRDCm3EjVAuZdQ= =NpiA -----END PGP SIGNATURE----- --------------enig28D8F8FDB9B20562614F9C02--