summaryrefslogtreecommitdiff
path: root/finance/xfinans/patches/patch-aa
blob: ad2ea82e7435af849d1084c162e8d3f9be7826ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-aa,v 1.1.1.1 2000/12/11 13:53:25 wiz Exp $
--- date.c.orig	Tue Jan  4 14:24:18 2000
+++ date.c	Tue Jan  4 14:24:24 2000
@@ -162,6 +162,8 @@
 		yr assumed w/in +/- 50 years from current time if < 100.
 		gives clean method for handling 2-digit year input.
 	*/
+	if( yr > 99 && yr < MIN_YEAR)	/* y2k */
+		yr -= 100;
 	if( yr < 100 ) {
 
 	  if( yr <= this_year() - 50 )
@@ -399,9 +401,8 @@
       now /= 3600;                        /* convert to hours */
       now /= 24;			      /* convert to days */
       now /= 365.25;		      /* convert to years */
-      now /= 100;			      /* convert to centurys */
-      
       now += 1970;			      /* from offset to absolute */
+/*      now /= 100;			      /* convert to centurys */
       century = now - (now % 100);	      /* round to nearest 100 */
     }