[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

hamm: hwclock y2k problem



FYI, to those whom may be concerned:

There appears to be a bug with the "hwclock" program and y2k wraparound,
on at least one system.

I have several systems using the AMI model 721 motherboard.  You'd think
that AMI, being a BIOS manufacturer, would get this right...

In any case, this board wraps to 1980 in y2k.  Any attempt to display
the date with hwclock fails in mktime() after the rollover.  The system
time does correctly wrap to 2000.  /proc/rtc shows 2000.  Rebooting the
system puts it in 1980, however.

It seems to me that /proc/rtc and hwclock would show the 1980 date if
they were functioning correctly.  The only workaround for this bug I
can see is to put a crontab entry in the system to have it rewrite the
CMOS time after the wraparound occurs.  Other Y2K testing has shown that
other Y2K dates do not present a problem for this system.  Even y2k leap
years work.  Odd.

Thanks,

Jeff

--
Please Cc: me on replies sent to mailing lists.


Reply to: