System clock off by 7 hrs

A

Anonymous

Guest
I is 11:10 PM March 11 right now, when I use the date command it
returns 6:10 March 12.
I have set it up for Pacific time but I think it's confused. What can I do to fix this?
 
Do you have something like the following in your /etc/rc.conf :

Code:
ntpdate_flags="north-america.pool.ntp.org"
ntpdate_enable="YES"
 
That's weird, whatever number I use for the year with that command it sets the year to 2020.
 
Sure you typed the dot ('.') to indicate the seconds? And 03 not 3? Works like a charm here:
Code:
% sudo date 200903112309.20
Wed Mar 11 23:09:20 AKDT 2009
% tail -1 /var/log/messages
Mar 11 23:09:20 laptop date: date set by mel
 
It worked that time, thanks. I still can't help wondering why it would be wrong in the first place though, I set it up for PDT during the installation.
 
Back
Top