DST

Michael "Ford" Ditto ditto at cbmvax.UUCP
Mon Mar 20 14:11:56 AEST 1989


In article <476 at dmk3b1.UUCP> dmk at dmk3b1.UUCP (David Keaton) writes:
>Does anyone know where to look in the Unix PC kernel binary to change
>the algorithm for computing Daylight Savings Time?

The kernel doesn't have anything to do with timezones or DST.  The US
DST algorithm is in localtime(3C).  It uses the old (pre-1986) rules
so it doesn't work correctly for some dates after 1986; this could be
fixed by modifying the shared library (if that were practical) but
that wouldn't fix those few programs that don't use the shlib.  Last
year, a few people posted patches that just make the localtime in the
shared library always use the post-1986 rules; the official "fix"
AT&T gave back in 1986 was to set TZ to "PDT7" instead of "PST8PDT"
(or a similar change for your timezone) on the day that DST starts,
and change it back sometime before DST ends.  Neither method really
fixes the problem.

This year, I plan to complain to AT&T very loudly since I hear they
are getting some fixdisks ready, and hopefully the DST stuff can
finally be fixed (only three years late).  I encourage everyone else
to complain as well.
-- 
					-=] Ford [=-

"The number of Unix installations	(In Real Life:  Mike Ditto)
has grown to 10, with more expected."	ford at kenobi.commodore.com
- The Unix Programmer's Manual,		...!sdcsvax!crash!kenobi!ford
  2nd Edition, June, 1972.		ditto at cbmvax.commodore.com



More information about the Unix-pc.general mailing list