Daylight savings time problem
Gary S. Trujillo
gst at gnosys.UUCP
Tue Apr 4 02:09:21 AEST 1989
In article <9139 at alice.UUCP> wilber at alice.UUCP (Bob Wilber) writes:
> I too have applied the binary patcher that Lenny posted to all relevant
> programs, and my TZ variable is set to EST5EDT, yet the dates displayed
> are still not adjusted for daylight savings time. I'd like to know if
> there's a way to make it work.
>
> Bob Wilber wilber at research.att.com
Well, first you have to reboot. Then (I discovered through observation)
you have to manually advance the time by an hour. Part of me said that
such should be unnecessary, since the time is maintained internally in
a timezone-independent form. However, I found that "ls" was reporting
correctly timezone-adjusted timestamps for files recently created, so
I reasoned that my intuition was incorrect, and that it was OK to just
go ahead and reset the hands of the clock, so to speak. All seems well.
Oh, one more thing. Just to prove to myself (through non-rigorous
empirical means) that everything was OK, I performed the small experiment
of resetting the clock to 0401015989 (one minute before 0200 on 1 April)
and then executed the "date" command a few times as the 0159 -> 0300
transition was taking place. I found that the hour between 0200 and
0300 was skipped, as it should have been, and that the EST -> DST tag
was changed appropriately. Perhaps Lenny or someone can give us more
formal assurances (or explain how I'm all wet! :-).
--
Gary S. Trujillo {linus,bbn,m2c}!spdcc!gnosys!gst
Somerville, Massachusetts {icus,ima,stech,wjh12}!gnosys!gst
More information about the Unix-pc.general
mailing list