[ntp:questions] using ntpd to initialise time instead of ntpdate sets wrong time.

David L. Mills mills at udel.edu
Thu Apr 14 21:05:15 UTC 2005


Danny & Co.,

1970 - 1937 = 33, 1 less than 34. 2005 - 1970 = 35, 1 greater than 34. 
Either upgrade to recent NTP or set the time first within 34 years of 
current time by hand before starting ntpd.

Dave

mayer at gis.net wrote:
> ----- Original Message Follows -----
> 
>>I've got an embedded linux machine whose initial time is 1, Jan, 1970.
>>When I use ntpdate to set the correct time at boot time it does this 
>>correctly, but when I use ntpd to do this it sets the time backwards
>>to  1937. The debug shows that the offset is seen as a negative value.
>>The  documentation suggests that ntpd -q can be used as a replacement
>>for  ntpdate.
>>
> 
> 
> Try using ntpd -gq since -g will ignore limits. What version of ntpd
> do you have on this system? Recent versions will set the date correctly
> (modulo 68 years).
> 
> Danny
> 
> 



More information about the questions mailing list