Re: Y2K

Alan Modra (alan@spri.levels.unisa.edu.au)
Sat, 20 Jun 1998 01:20:38 +0930 (CST)


On Fri, 19 Jun 1998, Richard B. Johnson wrote:

> On Sat, 20 Jun 1998, Alan Modra wrote:
>
> >
> > On Fri, 19 Jun 1998, Rogier Wolff wrote:
> >
> > > This is not true. The question is: since when is THIS code snippet
> > > in the linux kernel?
> > >
> > > linux/arch/i386/kernel/time.c: get_cmos_time:
> > >
> > > if ((year += 1900) < 1970)
> > > year += 100;
> >
> > Since around July 94, when I added it as part of a patch to fix Linux for
> > the silly half-hour timezone we have here in South Australia. The patch
> > was against kernel 1.1.17, so I think kernels 1.1.18 and above were Y2K
> > compliant.
> >
>
> This is in the get_cmos_time procedure. I don't think your patch was
> here. This code fixes the fact that the CMOS clock doesn't update the
> BCD Century byte on its own.

Well, in those days the file concerned was kernel/time.c. arch/* hadn't
been invented because the kernel was i386 only. There wasn't a
get_cmos_time() either. Things have changed a bit since then...

I can send you the patch if you really want to see whether I fixed it
right or not ;-)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu