If your mac errors when installing the OS from the internet recovery, open the terminal and type the following:

date -u 0127022820