[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating RH box for upcoming DST change



Steven Pritchard wrote:
> On Mon, Feb 19, 2007 at 03:17:33PM -0600, Ray Holtz wrote:
>> Ok, so what happens when you run these and get different information?
>>
>> [ray@server zoneinfo]$ /usr/sbin/zdump -v America/Chicago |grep 2007
> [...]
>> [ray@server zoneinfo]$ date -d '1970-01-01 UTC +1173679260 seconds'
> 
> I'm guessing it means /etc/localtime is out of sync with
> /usr/share/zoneinfo/America/Chicago.  Just do this to fix it:
> 
>   cp /usr/share/zoneinfo/America/Chicago /etc/localtime

Is there any advantage to copying versus soft linking?  That is, is
there any reason not to softlink like so:

# ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime

I just did the softlink and it seems to work fine:

$ /usr/sbin/zdump -v America/Chicago |grep 2007
America/Chicago  Sun Mar 11 07:59:59 2007 UTC = Sun Mar 11 01:59:59 2007
CST isdst=0 gmtoff=-21600
America/Chicago  Sun Mar 11 08:00:00 2007 UTC = Sun Mar 11 03:00:00 2007
CDT isdst=1 gmtoff=-18000
America/Chicago  Sun Nov  4 06:59:59 2007 UTC = Sun Nov  4 01:59:59 2007
CDT isdst=1 gmtoff=-18000
America/Chicago  Sun Nov  4 07:00:00 2007 UTC = Sun Nov  4 01:00:00 2007
CST isdst=0 gmtoff=-21600

$ date -d '1970-01-01 UTC +1173679260 seconds'
Mon Mar 12 01:01:00 CDT 2007

Regards,
- Robert

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.