How to Change the Time Zone Rules?

Murray Taylor MTaylor at bytecraft.com.au
Mon Jul 31 00:39:40 UTC 2006


Here is the process we used for the Commonwealth Games (when the 
end of Daylight saving was stretched for this year..) This does all
timezone files even though this procedure below only talks about
Australia.

NB The file name is now dated... user the appropriate current tzdata
file !!!



procedure ----------------8<----------------------------------
- save the file (tzdata2005r.tar.gz) into /usr/src/share/zoneinfo then
as root

# cd /usr/src/share/zoneinfo
# tar zxf tzdata2005r.tar.gz
# make
# make install
# cp /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
# chmod 600 /etc/localtime

Elapsed time - about as fast as you type the commands. 

This will update _all_ Australian timezone files (and apply various
other 
international updates also) on that host. repeat as necessary on other
hosts.

!*!*!*!
a sanity check 

# zdump -v /usr/share/zoneinfo/Australia/Melbourne | grep 2006

before and after the procedure.
Before- the results will show Daylight saving ending in March 
After - the results will show it ending correctly on the 1st Sunday in
April.

Similar tests can be run for Adelaide, Sydney etc. 
Also a test with Brisbane returns nothing as they don't 
use DST rules. Neither does Lindeman but Lord_Howe does .... sigh 

end procedure ----------------8<----------------------------------


NB you may need to update this file also _before_ doing the above ... 
(Im not sure, but our net weenie said it was necessary)

/usr/share/misc/iso3166

Murray Taylor

Special Projects Engineer
Bytecraft Systems
--
"Any intelligent fool can make things bigger and more complex... It
takes a
touch of genius - and a lot of courage to move in the opposite
direction."
--Albert Einstein 


> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org 
> [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of 
> Carlos A. Carnero Delgado
> Sent: Saturday, 29 July 2006 1:20 AM
> To: Martin McCormick
> Cc: freebsd-questions at freebsd.org
> Subject: Re: How to Change the Time Zone Rules?
> 
> Hello,
> 
> On 7/28/06, Martin McCormick <martin at dc.cis.okstate.edu> wrote:
> >  My question is, How do I get there from here?
> 
> See zic(8). It's very easy.
> 
> Best regards,
> Carlos.
> --
> <nick> grah windows just crashed again, unstable crap.
> <yukito> Windows isn't unstable, it's just spontaneous.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at freebsd.org"
> 
> ***This Email has been scanned for Viruses by MailMarshal.***
> 
---------------------------------------------------------------
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material. 

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
---------------------------------------------------------------

***This Email has been scanned for Viruses by MailMarshal.***


More information about the freebsd-questions mailing list