Y2K-Bug in INN 1.x, 2.x

Katsuhiro Kondou kondou at nec.co.jp
Wed Jan 5 10:59:33 UTC 2000


In article <84v2np$ajd$1 at krell.zikzak.de>,
	Bettina Fink <laura at krell.snafu.de> wrote;

} On my system:
} 
} $ convdate -n "3 Jan 00 21:48:34 GMT"
} 946936114

Very weird, if the result is on 2.2.2 with
your patch.  In that version, '00' is treated
as 1900 (= 0 + 1900).  You can see it in
parsedate.y like;

if ($5 > 100) {
    /* assume year is YYYY format, so need not to add 1900 */
    yyYear = $5;
} else {
    /* assume year is YY format, so need to add 1900 */
    yyYear = $5 + 1900;
}

And your preveous mail said 1900 fails.

In article <84urk9$5u3$1 at krell.zikzak.de>,
	Bettina Fink <laura at krell.snafu.de> wrote;

} When writing the patch, we did some testing (POST):
} 
}   00 = Ok
:
} 1900 = Can't parse "Date" header

-- 
Katsuhiro Kondou



More information about the inn-workers mailing list