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

Re: Updating RH box for upcoming DST change



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

A simplified variation is this:

$ date -d '2007-03-13'

  Mon Mar 13 00:00:00 CST 2007  # wrong

  Mon Mar 13 00:00:00 CDT 2007  # right

Same holds true for a late October date:

$ date -d '2007-10-30'

  Tue Oct 30 00:00:00 CST 2007  # wrong

  Tue Oct 30 00:00:00 CDT 2007  # right

Regards,
- Robert

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