*BSD News Article 73989


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news-res.gsl.net!news.gsl.net!hunter.premier.net!newsfeed.internetmci.com!news.sprintlink.net!new-news.sprintlink.net!newsreader.sprintlink.net!news.sprintlink.net!news-dc-10.sprintlink.net!nntp.primenet.com!uucp.primenet.com!typo.org!web
From: BOFH <web@typo.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: /etc/localtime?
Date: 17 Jul 1996 08:43:07 GMT
Organization: typo.org
Lines: 20
Message-ID: <4si92r$e6h@typo.org>
References: <4sasqr$3v8@pelican.unf.edu> <SCOTT.96Jul16123810@crux.dcs.qmw.ac.uk>
NNTP-Posting-Host: typo.org

Scott Mitchell <scott@crux.dcs.qmw.ac.uk> wrote:
: > We're having a problem with the Apache web server logging all its actions in
: > GMT, rather than local time.  Someone told me that the problem may be in 
: > /etc/localtime not being pointed to the correct file in /usr/share/timezone.
: > However, /usr/share/timezone doesn't exist and /etc/localtime is a binary
: > file that I don't know how to change.  Running sysinstall to set the timezone
: > seems to have no effect (yes, I rebooted).

: I think someone meant /usr/share/zoneinfo.  /etc/localtime is usually
: a copy/symlink to the appropriate file under that directory.

Probably localtime. Try this:

rm /etc/localtime
ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime

find a host to rdate or ntpdate off if and your clock should now be in
eastern time. Look under /usr/share/zoneinfo if this isn't the right zone.

-Wayne