From owner-freebsd-questions Wed Apr 4 4:38:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 03A3037B722 for ; Wed, 4 Apr 2001 04:38:27 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 7588 invoked by uid 100); 4 Apr 2001 11:38:23 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15051.1967.894096.128029@guru.mired.org> Date: Wed, 4 Apr 2001 06:38:23 -0500 To: "G D McKee" Cc: questions@freebsd.org Subject: Re: GMT & BST In-Reply-To: <003101c0bcf1$9d027ca0$0500a8c0@gdmckee.local> References: <15049.33337.990843.844118@guru.mired.org> <003101c0bcf1$9d027ca0$0500a8c0@gdmckee.local> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG G D McKee types: > Hi > > Sorry - BST is for British Summer Time. > > I run a cron every date to sync the time - the command is - > /usr/sbin/ntpdate -B -p 8 -s ntp.demon.co.uk. > > Done the tzsetup bit okay > > Cron file looks as follows > # time zone change adjustment for wall cmos clock, > # does nothing, if you have UTC cmos clock. > # See adjkerntz(8) for details. > 15,31 0-5 * * * root adjkerntz -a > > Were would I put the other switch in? At the top of the file, where it sets the other variables - like SHELL, PATH and HOME. Just set TZ there. Though it looks like you've thrown out most of the cron file. When I say adapt to BST I mean all the log files print out in BST time and > not GMT(UTC). > > Gordon > > > ----- Original Message ----- > From: "Mike Meyer" > To: "G D McKee" > Cc: > Sent: Tuesday, April 03, 2001 8:56 AM > Subject: Re: GMT & BST > > > > G D McKee types: > > > Hi > > > > > > I have my PC clock set to GMT and the system then changes the time > > > automatically to BST when it starts and stops. The problem is cron > still > > > uses GMT whilst the system 'date' command gives the time in BST. > > > > Are you really changing the date on the clock, or have you just used > > tzsetup to create /etc/localtime with your timezone info? If you > > haven't done the latter, you should do it now, and just leave the > > system clock at UTC. > > > > > How can I get cron to adapt to BST and not run in GMT all year round? > > > > Exactly what do you mean by "adapt to BST"? If you just want it to > > report BST instead of GMT and have set the system clock is set to GMT, > > try setting the TZ variable in /etc/crontab. The system doesn't > > reconize BST, but you can set it to the offset from GMT. > > > > If you mean something else, you'll need to explain exactly what you > > mean. > > > > > > > -- > > Mike Meyer http://www.mired.org/home/mwm/ > > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more > information. > > > > > > -- Mike Meyer http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message