[Leaplist] daylight savings change

"pberry2" at cfl.rr.com "pberry2" at cfl.rr.com
Wed Mar 7 17:39:59 EST 2007


John Simpson wrote:
> howdy-
>
> just a quick note to remind everybody to check your servers and make 
> sure that they will handle the change to daylight savings time THIS 
> WEEKEND, at 2am on sunday.
>
> you can check a *nix system using a command like this (which doesn't 
> even have to be done as root)...
>
> zdump -v timezone | grep 2007
>
> the "-v" option tells it to print the UTC->timezone equivalences for 
> the last second before the change and the first second after the 
> change, for the indicated timezone.
>
> the timezone name can be any of the old *nix timezone names (like 
> "EST5EDT", which is the US eastern time zone) or the newer names like 
> "America/New_York"... as long as a tzdata file with that name exists 
> in the zoneinfo directory (usually "/usr/share/zoneinfo" on linux 
> systems) then you can use "zdump" to check it (and it will find the 
> file in the zoneinfo direcory, you don't need to specify the full path 
> name to the file.)
>
> % zdump -v EST5EDT | grep 2007
> EST5EDT  Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST 
> isdst=0
> EST5EDT  Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT 
> isdst=1
> EST5EDT  Sun Nov  4 05:59:59 2007 UTC = Sun Nov  4 01:59:59 2007 EDT 
> isdst=1
> EST5EDT  Sun Nov  4 06:00:00 2007 UTC = Sun Nov  4 01:00:00 2007 EST 
> isdst=0
>
> you should see "Mar 11" in the output. if you see "Apr 1", you still 
> need to do the fix.
>
> if you DO need to fix it, your distro should supply an updated 
> "tzinfo" package in their normal repositories. for older systems, you 
> may need to update your "glibc" package instead.
>
> and if worse comes to worst and you need to do it by hand, there is an 
> FTP server run by the federal government, but in a really strange 
> place- the national cancer institute (i would have figured it would be 
> the naval observatory, but what do i know...)
>
> ftp://elsie.nci.nih.gov/pub/
>
> the file "tzdata2007c.tar.gz" contains a bunch of files which are the 
> input for "zic". (if you don't have "zic" installed on your system, 
> the "tzcode2007c.tar.gz" file contains its source code.)
>
> you should be able to run a command like "zic -d workdir -l 
> America/New_York northamerica" to read the indicated file (in this 
> case, "northamerica") and generate the binary tzinfo files, all within 
> the "workdir" you specify. this gives you a chance to inspect these 
> files using zdump, and if you're happy with them, you should manually 
> copy them over the files with the same names in /usr/share/zoneinfo.
>
> then you probably need to update /etc/localtime, which tells the 
> kernel what "local time" to use. this file is actually a COPY of one 
> of the files under /usr/share/zoneinfo, which means you can "zdump" it 
> just like any other. if "America/New_York" or "US/Eastern" is your 
> local time zone, you can copy /usr/share/zoneinfo/America/New-York 
> over /etc/localtime, and your system will automatically adjust to the 
> new timezone.
>
> and you won't even need to reboot- the kernel keeps time internally as 
> UCT, the whole concept of daylight savings only comes into play when 
> it needs to format a time for display (or for inclusion as the 
> timestamp in a syslog file, so you want to make sure you get this done 
> before sunday morning.)
>
> ----------------------------------------------------------------
> | John M. Simpson    ---   KG4ZOW   ---    Programmer At Large |
> | http://www.jms1.net/                         <jms1 at jms1.net> |
> ----------------------------------------------------------------
> | http://video.google.com/videoplay?docid=-4312730277175242198 |
> ----------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Leaplist mailing list
> Leaplist at leap-cf.org
> http://lists.leap-cf.org/mailman/listinfo/leaplist
>   
I get:
bash: zdump: command not found

PCLinuxOS-p93 is my system.  Based on Mandriva.



More information about the Leaplist mailing list