Bug 1262

Summary: ntpdate fails to properly update time after y2k
Product: [Retired] Red Hat Linux Reporter: trims
Component: xntp3Assignee: David Lawrence <dkl>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-02-22 16:02:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description trims 1999-02-21 14:18:56 UTC
Was doing some y2k testing on my machine, and found the
following problem:

[root@balrog /root]# date
Sun Feb 21 06:15:38 PST 1999
[root@balrog /root]# /etc/rc.d/init.d/xntpd stop
Shutting down xntpd:
[root@balrog /root]# date -s "Jan 1 00:00:00 2000"
Sat Jan  1 00:00:00 PST 2000
[root@balrog /root]# /usr/sbin/ntpdate tock.usnogps.navy.mil
 1 Jan 00:00:09 ntpdate[2359]: Can't adjust the time of day:
Invalid argument
[root@balrog /root]# date -s "Jan 1 00:00:00 1999"
Fri Jan  1 00:00:00 PST 1999
[root@balrog /root]# /usr/sbin/ntpdate tock.usnogps.navy.mil
21 Feb 06:16:21 ntpdate[2361]: step time server
204.34.198.41 offset 4428978.456832 sec
[root@balrog /root]# date
Sun Feb 21 06:16:28 PST 1999


Looks like ntpdate has an issue with the date format. I'll
try to chase it down tomorrow - though if someone want to
contact me, that would be fine, too.

I suspect the bug is valid on all architectures, though I'm
filing it for i386 because that's all I have to test on.

Comment 1 trims 1999-02-22 04:39:59 UTC
Ooh, my bad. Ntpdate actually has a problem with ANY date more than
approx 16 hours in the future.  I'll go back to reading the sources
now.  I'll followup shortly.  <sheepish grin>