Remove and reinstall the ram
“Remove and reinstall the ram”
This is my guess as well.
As others have pointed out, your CMOS battery may be dead, but that wouldn’t prevent you from using the PC; but you would have to reset to hardware settings & the time whenever you turned it on.