[PLUG] Setting the time properly

Rich Shepard rshepard at appl-ecosys.com
Thu Sep 12 11:46:59 UTC 2002


  I found the 'tzset' command and used that to specify Pacific Time Zone.
Then I put the TZ set string in ~/.bash_profile as well as for root and the
other user on the system here. That's all well and good.

  However, when I logged out and back in (so the new setting would take
effect from the re-reading of .bash_profile) and typed 'date' on the command
line, I saw that it was three hours behind the real time (I've ntpd running;
it's exactly 3 hours behind). But, when I start X and ask for the date in a
virtual terminal, it displays:

[rshepard at salmo ~]$ date
Thu Sep 12 04:38:34 PDT 2002

  Correct time zone, wrong time. When I su I see this:

[root at salmo /home/rshepard]# /usr/sbin/hwclock -r 
Thu 12 Sep 2002 07:37:56 AM EDT  0.536746 seconds
[root at salmo /home/rshepard]# date
Thu Sep 12 07:38:06 EDT 2002

  Correct time, wrong time zone.

  What might be going on here?

Thanks,

Rich






More information about the PLUG mailing list