A reminder to remove the PRAM battery from your Mac, or replace it with a new one every few years to prevent this from happening. This was a Macintosh IIvx with its
Apple iMac MacPro Mac mini PRAM Battery – local338
How To Calibrate a Mac Laptop's Power System - NewerTech
Mac Pro Late 2013 CMOS Battery Replacement
How powerful is the battery in a Mac mini? - Quora