The problem of the time and date not being saved when the computer is unplugged is usually related to the CMOS battery.
It seems that repeatedly unplugging the computer may have drained the battery. This battery maintains the date and time settings and motherboard settings.
In this case, you should replace the battery on the motherboard with a new one and reset the date and time.
Computerengi Facebook page: / %d9%83%d9%85%d8%a8%d9%8a%d9%88%d8%aa%d8%b1...