- If your Mac is connected to the internet, you can tell your Mac to check online for the current date and time. You can do this by typing at the prompt
ntpdate -u time.apple.comand then pressing Return.
Your Mac should now have the current date and time. If you enter
date again (as I did in the screenshot above) the information that appears will be current. You can now run the OS installer.
If you don’t have an internet connection
You can still use Terminal to set the date. Go into the Terminal as described above, then follow these steps.
At the prompt, type
dateto see the date that’s on the Mac.
Figure out the numerical representation of the date and time. The pattern you need to follow:
- Month: in two-digit format. For example, July is 07.
- Day: in two-digit format. For example, the 7th is 07.
- Time: in military format of hours and minutes. For example, 2:00 p.m. is 1400.
- Year: Last two digits.
In my example, the numerical representation is 0719140016. This stands for July (07) 19, (19), 2 p.m. (1400), 2016 (16).
- At the prompt, type
date [numerical], with
[numerical]being the representation you figured out. In my example, I typed
date 0719140016. Then press Return.
The date should be set. You can check the date again by typing
date at the prompt. You can now run the installer.
Sign up for CIO Asia eNewsletters.