Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 1996 18:40:02 -0700 (PDT)
From:      Mike Pritchard <mpp>
To:        freebsd-bugs
Subject:   Re: misc/1380: Year 2000 breakage with tm_year
Message-ID:  <199607110140.SAA04654@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/1380; it has been noted by GNATS.

From: Mike Pritchard <mpp>
To: sjr@zombie.ncsc.mil (Stephen J. Roznowski)
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: misc/1380: Year 2000 breakage with tm_year
Date: Wed, 10 Jul 1996 18:35:45 -0700 (PDT)

 Stephen J. Roznowski wrote:
 > >Description:
 > 
 > 	Several programs have a hardcoded 19 in responses for the year.
 > 	This will break in 4 years...
 > [...]
 > --- 1467,1474 ----
 > 				struct tm *gmtime();
 > 				t = gmtime(&stbuf.st_mtime);
 > 				reply(213,
 > ! 					    "%04d%02d%02d%02d%02d%02d",
 > ! 					    1900+t->tm_year, t->tm_mon+1, t->tm_mday,
 
 Isn't there a TM_YEAR_BASE symbol defined somewhere that should
 be used instead of a hardcoded 1900?
 -- 
 Mike Pritchard
 mpp@FreeBSD.org
 "Go that way.  Really fast.  If something gets in your way, turn"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607110140.SAA04654>