Y2K-Bug in INN 1.x, 2.x
Miquel van Smoorenburg
list-inn-workers at news.cistron.nl
Wed Jan 5 14:45:20 UTC 2000
In article <cistron.200001051138.MAA03180 at aalborg.du.uab.ericsson.se>,
Per Hedeland <per at erix.ericsson.se> wrote:
>Katsuhiro Kondou <kondou at nec.co.jp> wrote:
>>Attached will work for you. This assumes 'YY' as current
>>century. I'll commit unless there is any problem.
>
>>- yyYear = $5 + 1900;
>>+ yyYear = $5 + (yyYear - 1900)/100 * 100 + 1900;
>>[etc]
>
>While I agree that it fixes 00, and that these are the right places to
>fix (and then do away with the "ensuring" in Convert() - if you dare:-),
>I still don't think it is *right*: E.g. it will treat 99 as 2099, which
>might actually matter for a week or so from now.
>
>The proper thing IMHO is of course to use "closest century", a.k.a.
>standard "sliding window" technique.
Not only IYHO, but in the FRNSHO (Fine RFCs Not So Humble Opinion) as well :)
See RFC977, paragraph 3.7.1
Mike.
--
There's a lot to be said for not saying a lot.
--
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to miquels at cistron.nl (Miquel van Smoorenburg)
More information about the inn-workers
mailing list