CK Lim wrote:
> I try to help a friend who has some problem with display the system date
> and time.
> My friend has a application running on red hat linux. The application
> always display the system date and time to the led display.
What is this "led display" that you are talking about?
> When the battery for the "CMOS" is weak, the date and time shifted. That
> display on the led will be incorrect.
It sounds as if your hardware clock battery is failing and therefore
the hardware clock is not keeping correct time when the system is not
running. After a reboot the time will be incorrect.
The usual solution is to run an NTP daemon to correct the clock at
boot time and to keep the clock correct during normal system
The best answer is to correct the clock. And perhaps replace the
battery. But if the network is available then the net can be used for
a time base to correct the clock at boot time and during normal operation.