From gnat@prometheus.frii.com  Fri Sep 18 15:03:04 1998
Received: from prometheus.frii.com (prometheus.frii.com [208.146.240.73])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA11026
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 18 Sep 1998 15:03:03 -0700 (PDT)
          (envelope-from gnat@prometheus.frii.com)
Received: (from gnat@localhost)
	by prometheus.frii.com (8.8.8/8.8.8) id QAA00641;
	Fri, 18 Sep 1998 16:02:13 -0600 (MDT)
	(envelope-from gnat)
Message-Id: <199809182202.QAA00641@prometheus.frii.com>
Date: Fri, 18 Sep 1998 16:02:13 -0600 (MDT)
From: gnat@frii.com
Reply-To: gnat@frii.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: date y2k problem
X-Send-Pr-Version: 3.2

>Number:         7982
>Category:       bin
>Synopsis:       Default format for /bin/date to set date has 2 year digits
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 18 15:10:00 PDT 1998
>Closed-Date:    Sun Sep 20 19:51:03 PDT 1998
>Last-Modified:  Sun Sep 20 19:53:18 PDT 1998
>Originator:     Nathan Torkington
>Release:        FreeBSD 2.2.7-RELEASE i386
>Organization:
Antipodeans, Unlimited.
>Environment:

	2.2.7-RELEASE

>Description:

	When you set the date with /bin/date, it uses a default format
	to parse your date string that only has two year digits.  This
	smells like a y2k problem.

>How-To-Repeat:

	Set the date.  :-)

>Fix:

	Here's my drug-addled suggestion:	
	Change the default logic.  If you have 8 or fewer digits for
	the date (before the optional period and seconds value) then
	nothing needs to change.  If you have 10, then it's a two-digit
	year and you'll have to decide on an interpretation (19xx or some
	hybrid based on the two digits).  If you have 12, then it's a
	four-digit year and no interpretation is required.
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: thepish 
State-Changed-When: Sun Sep 20 19:51:03 PDT 1998 
State-Changed-Why:  
date(1) is Y2k compable: 

if ( lt- > tm_year < 69 ) /* hack for 2000 ; -} */ 
lt- > tm_year += 100 
(in 2.2.7 and current) 
>Unformatted:
