Anyway, that means I have to check and reset the time periodically. So this morning I did a time check and found it many hours off. No, wait -- actually it was pretty close; it only looked like it was way off because the system had suddenly decided it was in UTC, not PDT. But how could I change that back?
I checked /etc/timezone -- sure enough, it was set to UTC. So I changed that, copying one from a debian machine -- "US/Pacific", but that didn't do it, even after a reboot.
I spent some time reading
man hwclock -- there's a lot
of good reading in that manual page, about the relation between the
system (kernel) clock and the hardware clock. Did you know that
you're not supposed to use the date command to set the system
time while the system is running? Me neither -- I do that all the
time. Hmm. Anyway, interesting reading, but nothing useful about
the system time zone.
It has an extensive SEE ALSO list at the end, so I explored some
of those documents.
is full of lots of interesting information, well worth reading,
but it didn't have the answer.
man tzset sounded
promising, but there was no such man page (or program) on my system.
Just for the heckofit, I tried typing
to see if I had any other timezone-related programs installed ...
and found tzselect. And there was the answer, added almost as an
afterthought at the end of the manual page:
Note that tzselect will not actually change the timezone for you. Use 'dpkg-reconfigure tzdata' to achieve this.Sure enough,
dpkg-reconfigure tzdatalet me set the time zone. And it even seems to be remembered through a reboot.
[ 10:04 May 16, 2008 More linux | permalink to this entry ]