[nSLUG] Re: DST & tzdata

Bill Davidson billdavidson at eastlink.ca
Mon Mar 5 17:57:22 AST 2007


On Mon, 2007-03-05 at 15:38 -0500, Joe Dunn wrote:
> remember to re-make your sym-link from /etc/localtime to your correct
> zone in /usr/share/zoneinfo especially on RH systems.

On Slackware systems /etc/localtime is not a link, but a copy of the
time zone file from /usr/share/zoneinfo.  I thought this was odd, but
then I realized that this way your time zone is set correctly even
if /usr isn't mounted.  The copying is done by the package installation
script, and it also creates a symlink called /etc/localtime-copied-from
which points to the file under /usr/share/zoneinfo.

So, in my case:

$ ls -l /etc/local*
-rw-r--r-- 1 root root 3424 2007-02-23 09:37 /etc/localtime
lrwxr-xr-x 1 root root   35 2004-02-22 21:59 /etc/localtime-copied-from -> /usr/share/zoneinfo/America/Halifax

and, interestingly, /usr/share/zoneinfo/localtime is a symlink pointing
to /etc/localtime.

Bill Davidson <billdavidson at eastlink.ca>


More information about the nSLUG mailing list