Changing system date from Terminal - OS X recovery - Thomas Bensmann

Fixing the date on your mac when you get "an error occurred while preparing the installation. Try running again", when booting OS X the recovery partitition