{"id":3046,"date":"2020-05-26T08:52:58","date_gmt":"2020-05-26T08:52:58","guid":{"rendered":"https:\/\/blog.designed79.co.uk\/?p=3046"},"modified":"2022-01-20T11:05:41","modified_gmt":"2022-01-20T11:05:41","slug":"changing-system-date-from-terminal-macos-recovery","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=3046","title":{"rendered":"Changing system date from Terminal \u2013 macOS recovery"},"content":{"rendered":"<p>When you\u2019re booting your Mac from the recovery partition and are planning to reinstall OS X, you might be met by the following message:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">An error occurred while preparing the installation. Try running again<\/div><\/div>\n<p>This is normally the signing on the installer has expired.<\/p>\n<p>You need to set the system clock back to when the installer signing is valid. \u00a0To do this, we enter a new command. This command will be entered as follows:<\/p>\n<pre>\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">date -u {month}{day}{hour}{minute}{year}<\/div><\/div>\n\n<\/pre>\n<p>You can grab the current date using the following<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">date &quot;+%m%d%H%M%Y.%S&quot;<\/div><\/div>\n<p>Every bracket should be replaced with a two-digit number based on UTC time. Below you see what the command should be for <strong>your current time and date<\/strong>\u00a0\u2013 May 26th 2020 09:45. To avoid trouble with timezones, we will use UTC time instead (May 26th 2020 08:45). Which means, you can just enter it exactly like this:<\/p>\n<pre>\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">date -u 0526084520<\/div><\/div>\n\n<\/pre>\n<p>I normally use a general date such as<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">date -U 0101010119<\/div><\/div>\n<p>Enter the command and hit return. You can then check if it was set correctly by running the first command again. If the date was wrong, it was likely that which caused the error, and after you quit the terminal it should be able to install OS X just fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you\u2019re booting your Mac from the recovery partition and are planning to reinstall OS X, you might be met by the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3046","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3046"}],"version-history":[{"count":2,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3046\/revisions"}],"predecessor-version":[{"id":3094,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3046\/revisions\/3094"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}