[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DST/ntp problems




hi Lukas,

On 03-04-10 21:45 +0200, Lukas Ruf wrote:
> * Kenneth Dombrowski <kenneth@ylayali.net> [2003-04-10 20:55]:
> > On the laptop, I tried to manually adjust the time with
> > # date -s 'Thu Apr 10 13:00:00 EST 2003'
> 
> have you tried adjusting the time with 
>   ntpdate <your_time_server>
> before starting ntpd?

I had tried it on the Woody box. I just tried it on the sid laptop
before replying. Then the two were at least broken the same way:

# ntpq
ntpq> pe
remote           refid      st t when poll reach   delay   offset     jitter
==============================================================================
filbert.cc.colu gnomon.cc.colum  2 u   13   64    1   34.752    -2.343   0.004
time.nist.gov   .ACTS.           1 u   14   64    1   69.988    -3.463   0.004
ntpq> exit
# date
Thu Apr 10 15:51:32 EST 2003
       
but by all other clocks, that should've been 16:51:32

I ran tzselect just to be sure, it ended with this:

  The following information has been given:
    United States
    Eastern Time
  Therefore TZ='America/New_York' will be used.
  Local time is now:      Thu Apr 10 16:52:32 EDT 2003.
  Universal Time is now:  Thu Apr 10 20:52:32 UTC 2003.
  Is the above information OK?
  1) Yes
  2) No
  #? 1
  You can make this change permanent for yourself by appending the line
      TZ='America/New_York'; export TZ
  to the file '.profile' in your home directory; then log out and log in 
  again.

so I tried it..

kenneth@enlil:~$ date
Thu Apr 10 16:04:58 EST 2003
kenneth@enlil:~$ vi .profile
 (file had to be created)
kenneth@enlil:~$ source .profile
kenneth@enlil:~$ date
Thu Apr 10 17:07:57 EDT 2003

so I guess that kind of points more to the problem, but given:

kenneth@enlil:~$ cat /etc/timezone
EST

I don't understand why it's necessary. 

I'll go ahead and try exporting TZ from /etc/profile to make it the
system default. Will that effect daemons and cron and anything else that
writes to /var/log though? 

Anyway, thanks for pointing me in the right direction,

Kenneth




Reply to: