From owner-freebsd-questions@FreeBSD.ORG Mon Feb 28 11:36:55 2005 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 9892816A4CF for ; Mon, 28 Feb 2005 11:36:55 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 681C243D31 for ; Mon, 28 Feb 2005 11:36:47 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j1SBagqS013002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Feb 2005 03:36:43 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j1SBagAk013000; Mon, 28 Feb 2005 03:36:42 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Mon, 28 Feb 2005 03:36:41 -0800 From: "Loren M. Lang" To: Ian Smith Message-ID: <20050228113641.GG1672@alzatex.com> References: <20050227120022.F3FEA16A5AC@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: Pat Maddox cc: freebsd-questions@freebsd.org Subject: Re: Received mail timestamp is off by 7 hours 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: Mon, 28 Feb 2005 11:36:55 -0000 On Mon, Feb 28, 2005 at 12:58:17AM +1100, Ian Smith wrote: > On Sun, 27 Feb 2005 03:10:12 -0700 Pat Maddox wrote: > > > Alright, I got it all working now. Not sure how to change the time > > zone with config files, so I just used sysinstall to change it to MST > > (time zone is arbitrary, but since this is the zone I live in, it's > > convenient for me). Then I used ntpdate to sync it, and it's working > > well now. > > > > Thanks for pointing that out to me. I just thought that CET was central time :) > > Yes sysinstall's as good a way as any, it'll set your timezone and also > let you choose between running with a UTC or local time CMOS clock. Or > you can manually tun tzsetup(8) and create (or not) /etc/wall_cmos_clock > .. see adjkerntz(8) > > Take little notice of people opining that you must or even should run > CMOS UTC time; that's entirely up to you. I've always preferred local > time CMOS clocks personally; sysinstall creates /etc/wall_cmos_clock and > cron runs 'adjkerntz -a' halfhourly at times when daylight savings time > might come or go in your zone, and that's always worked fine here. The reason using UTC for the cmos clock is that it never changes like US daylight savings does. Now if your timezone doesn't ever need to be pushed forward or backwards then it won't be a problem, but otherwise evertime the system boots up, it has to determine if the cmos time is correct or needs to be adjusted. A UTC time will always be correct and can be turned exactly into the correct time at the moment. I think that if FreeBSD crashed just after it booted up and adjusted the hour forward, then on the next reboot, it would adjust it another hour forward. In general, it is just harder to manage. Even worse would be my Quad boot system with Gentoo Linux, FreeBSD, OpenBSD, NetBSD. If I used local time for my cmos clock then every daylight savings change, each os would adjust the clock independently and I'd be 3 hours off. > > The only thing to watch running wall_cmos_clock is that if you boot to > single user mode, before /etc/rc has run 'adjkerntz -i' the system will > assume CMOS is UTC, so any files then modified show timestamps in UTC > (discovered the hard way in Jan 2000 on a box with a broken y2k BIOS :) > > Cheers, Ian > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C