From owner-freebsd-questions@FreeBSD.ORG Sat Oct 11 07:50:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 115BA1065692 for ; Sat, 11 Oct 2008 07:50:22 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 89B8A8FC15 for ; Sat, 11 Oct 2008 07:50:21 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id m9B7nNhY060909; Sat, 11 Oct 2008 08:50:15 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk m9B7nNhY060909 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1223711415; bh=BT3OVfQXQ1ty94 rSxkB3KuNj1y3enDIEH24/NaXvDLA=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<48F05A7C.7030404@infracaninophile.co.uk>|Date:=20Sat,=2 011=20Oct=202008=2008:49:16=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.17=20(X11/20080929)|MIME-Version:=201 .0|To:=20Richard=20Smith=20|CC:=20freebsd-quest ions@freebsd.org|Subject:=20Re:=20dmesg:=20Invalid=20time=20in=20cl ock:=20check=20and=20reset=20the=20date|References:=20<111038.12337 .qm@web45011.mail.sp1.yahoo.com>|In-Reply-To:=20<111038.12337.qm@we b45011.mail.sp1.yahoo.com>|X-Enigmail-Version:=200.95.6|Content-Typ e:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol= 3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"------------en ig6CB20C5D69B775E8E7E6D1F7"; b=fUFf2ZBNRsdYbJZmRooZpd+/MPS3HvcZcRIc +vpt+tFt+6IuUN9DRI0Fr4IOHlUyUzaVJ33q3U/PJR76TBGFvSANmItNfWaGGpAu6Qc eDvJiTfpfL/jP15KbGOkq2/grrFirYccQl+mkgQMIR3AQ+toh4rRyTMO7OHOXt9Wp76 U= Message-ID: <48F05A7C.7030404@infracaninophile.co.uk> Date: Sat, 11 Oct 2008 08:49:16 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.17 (X11/20080929) MIME-Version: 1.0 To: Richard Smith References: <111038.12337.qm@web45011.mail.sp1.yahoo.com> In-Reply-To: <111038.12337.qm@web45011.mail.sp1.yahoo.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig6CB20C5D69B775E8E7E6D1F7" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 11 Oct 2008 08:50:15 +0100 (BST) X-Virus-Scanned: ClamAV 0.94/8411/Sat Oct 11 03:40:28 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: dmesg: Invalid time in clock: check and reset the date 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: Sat, 11 Oct 2008 07:50:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6CB20C5D69B775E8E7E6D1F7 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Richard Smith wrote: > Hi, I've just installed FreeBSD 7.0 Release along with Windows XP on my= PC. I found that when I set the clock to the correct time&date, next tim= e I boot into FreeBSD it changes and reports the wrong time&date. Both BI= OS and Windows reports the time correctly. >=20 > dmesg shows the following message: > Invalid time in clock: check and reset the date! >=20 > Can't figure out what's wrong... any help will be appreciated. Is the time out by an exact number of hours?[*] Does the offset correspond to your localities' timezone offset from UTC? If so, then what is happening is this: Windows will only deal with one timezone at a time, and it expects the system clock (and consequently the CMOS clock on the motherboard) to be set to the local wall-clock time. Unix in comparison allows each process to be run in an arbitrary timezone, simply by setting the TZ environment variable. It expects the system clock and the CMOS clock to be set to UTC, and it calculates the local offset as required. When you reboot the machine, the internal system clock is set from the cmos clock, so one or the other OS will end up thinking local wall-clock time is UTC or vice-versa. Unless you have the happy=20 fortune to be living in this Sceptered Isle (but only during the winterti= me), or in certain parts of West Africa that's going to cause problems. If you need to dual-boot, FreeBSD provides a mechanism for allowing the CMOS clock to be set to wallclock time. You can toggle the setting using /usr/sbin/tzsetup -- if there is a zero length file /etc/wa= ll_cmos_clock then your system is running in compatability mode. Note: this file should not appear on a box that is dedicated to running FreeBSD[+] -- the tzsetup default is the /wrong/ choice in this case. Cheers, Matthew [*] Assuming you don't live in Newfoundland or one of the other odd places with timezones that have a 30 minute offset. [+] or that only dual boots to *BSD or Linux or MacOS X or Solaris etc. --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig6CB20C5D69B775E8E7E6D1F7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkjwWoMACgkQ8Mjk52CukIyIVACeJxpNhutab5xgHvtTCIy63/Y3 iXsAn1sQseMxLryflMXTg0DqnC1h7ap3 =cTR1 -----END PGP SIGNATURE----- --------------enig6CB20C5D69B775E8E7E6D1F7--