Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2001 06:38:23 -0500
From:      Mike Meyer <mwm@mired.org>
To:        "G D McKee" <freebsd@gdmckee.com>
Cc:        questions@freebsd.org
Subject:   Re: GMT & BST
Message-ID:  <15051.1967.894096.128029@guru.mired.org>
In-Reply-To: <003101c0bcf1$9d027ca0$0500a8c0@gdmckee.local>
References:  <15049.33337.990843.844118@guru.mired.org> <003101c0bcf1$9d027ca0$0500a8c0@gdmckee.local>

next in thread | previous in thread | raw e-mail | index | archive | help
G D McKee <freebsd@gdmckee.com> 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.

	<mike

> 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" <mwm@mired.org>
> To: "G D McKee" <freebsd@gdmckee.com>
> Cc: <questions@freebsd.org>
> Sent: Tuesday, April 03, 2001 8:56 AM
> Subject: Re: GMT & BST
> 
> 
> > G D McKee <freebsd@gdmckee.com> 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
> > --
> > Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/
> > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more
> information.
> >
> >
> 
> 
--
Mike Meyer <mwm@mired.org>			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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15051.1967.894096.128029>