avast has nothing to do with the date/time. Looks like you have a dead CMOS battery. Replace it, set the correct date and time in the BIOS/Uefi and check if they stick.