Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2002 09:59:56 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Jeff Penn <jeff@jrpenn.demon.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: timezone on freebsd/debian system
Message-ID:  <20020819002956.GD43138@wantadilla.lemis.com>
In-Reply-To: <20020818152332.GA594@jrpenn.demon.co.uk>
References:  <20020818152332.GA594@jrpenn.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, 18 August 2002 at 16:23:32 +0100, Jeff Penn wrote:
> I installed FreeBSD on a new system back in January.  When promped to set
> UTC during the install I answered no, and set the timezone to London.
>
> In March my system did not forward the system clock by 1 hour, although
> date shows the timezone as BST.
>
> I recently installed Debian Woody on the system and set the timesone to
> London.  The date also displays BST, but is 1 hour ahead.  I also installed
> freedos recently, but did not notice if the time was correct.
>
> any suggestions?

Set the system clock to UTC.  That's what that first question meant,
and it's the only correct thing to do.  The system then installs a
time zone file for your local time zone.  The alternative is a kludge
to make life easier with systems which don't have any concept of time
zones.  It involves the use of the adjkerntz(8) program via
/etc/crontab:

# time zone change adjustment for wall cmos clock,
# does nothing if you have UTC cmos clock.
# See adjkerntz(8) for details.
# 1,31  0-5     *       *       *       root    adjkerntz -a

This gets activated by uncommenting the last line (remove the initial
"# ".  I suspect something has gone wrong with your crontab entry.
The better solution, though, is to install a time zone file:

  cp /usr/share/zoneinfo/Europe/London  /etc/timezone

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers

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?20020819002956.GD43138>