[BUGS] Don't get caught this sunday with no DST changes

jonathan michaels jlm at caamora.com.au
Thu Mar 27 20:09:13 EST 2008


greetings edwin,

On Thu, Mar 27, 2008 at 01:12:32PM +1100, Edwin Groothuis wrote:

> At http://www.mavetju.org/weblog/html/00223.html I have a write up
> on how to see if your systems need updating for coming Sundays
> absence of DST changes.

i noticed some odd things in teh 00223.html page

$ wget ftp://ftp://elsie.nci.nih.gov/pub/tzdata2008X.tar.gz

the front bit seems to be a typo, yes ?? and teh actual name of
teh relevent file is tzdata2008b.tar.gz

so, i tried the following,

$ wget ftp://elsie.nci.nih.gov/pub/tzdata2008b.tar.gz
19:38:17 (5.66 KB/s) - tzdata2008b.tar.gz saved [166544]

which seemed to work somewhat better

then i did teh usual zic and copied files and when i tried to
check teh date/time going forward i discovered something odd
for example,

$ perl -e 'use POSIX;print "Date = ", POSIX::ctime(1206529200 + 86400 * 0);'
Date = Wed Mar 26 22:00:00 2008

$ perl -e 'use POSIX;print "Date = ", POSIX::ctime(1206529200 + 86400 * 7);'
Date = Wed Apr  2 22:00:00 2008

$ perl -e 'use POSIX;print "Date = ", POSIX::ctime(1206529200 + 86400 * 14);'
Date = Wed Apr  9 21:00:00 2008

i thought i'd gotten it nailed but then i tried the last one
and saw the 21:00:00, again.  just to check if it is not an
anomily i also tried one at 28 days, as well as using the shell
scripts one liners as per provided examples.

i've tried two hosts thus far and both show the same results as
above. both hosts are on freebsd v6.2-release, i'm reticeint to
try teh v5.4-release or teh v2.2.5-release that is working a
real treat

is this an expected result ? i retried the the outlined process
and got teh same results, grrr, is my filesystem mangled or
have i got some sort of creaping filesystem damage or is
something going wrong ??

any ideas ... thoughts, suggestions, place to start looking, it
is not that there is much that can go wrong .. is there ?

kind regards and much appreciations

jonathan

-- 
================================================================
powered by ..
QNX, OS9 and freeBSD  --  http://caamora com au/operating system
==== === appropriate solution in an inappropriate world === ====


More information about the BUGS mailing list