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

Re: Updating RH box for upcoming DST change



On 2/14/07, Robert Citek <rwcitek@alum.calberkeley.org> wrote:
> Steven Pritchard wrote:
> > I just saw someone mention on IRC that a good test for this is to run
> > the following command:
> >
> >   date -d '1970-01-01 UTC +1173679260 seconds'
> >
> > On systems with the wrong tzdata, you'll get this:
> >
> >   Mon Mar 12 00:01:00 CST 2007
> >
> > You should get this though:
> >
> >   Mon Mar 12 01:01:00 CDT 2007
>
> That's a great test.  Thanks, Steve.
>
> Regards,
> - Robert

That is good.

Another one is

zdump -v America/Chicago |grep 2007

You should see
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

If the dates are Apr and Oct, you have the wrong tzdata.

Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com

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