{"id":1538,"date":"2024-12-13T16:25:00","date_gmt":"2024-12-13T16:25:00","guid":{"rendered":"https:\/\/silica.nu\/?p=1538"},"modified":"2024-12-13T16:30:30","modified_gmt":"2024-12-13T16:30:30","slug":"changing-system-date-from-terminal-os-x-recovery","status":"publish","type":"post","link":"https:\/\/silica.nu\/?p=1538","title":{"rendered":"Changing system date from Terminal \u2013 OS X recovery"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"981\" height=\"610\" src=\"https:\/\/silica.nu\/wp-content\/uploads\/2024\/12\/os-x-date-terminal.png\" alt=\"\" class=\"wp-image-1542\" srcset=\"https:\/\/silica.nu\/wp-content\/uploads\/2024\/12\/os-x-date-terminal.png 981w, https:\/\/silica.nu\/wp-content\/uploads\/2024\/12\/os-x-date-terminal-300x187.png 300w, https:\/\/silica.nu\/wp-content\/uploads\/2024\/12\/os-x-date-terminal-768x478.png 768w, https:\/\/silica.nu\/wp-content\/uploads\/2024\/12\/os-x-date-terminal-940x585.png 940w, https:\/\/silica.nu\/wp-content\/uploads\/2024\/12\/os-x-date-terminal-500x311.png 500w, https:\/\/silica.nu\/wp-content\/uploads\/2024\/12\/os-x-date-terminal-600x373.png 600w\" sizes=\"auto, (max-width: 981px) 100vw, 981px\" \/><\/figure>\n\n\n\n<p>When you\u2019re booting your Mac from the recovery partition and are planning to&nbsp;reinstall OS X, you might be met by the following message:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>An error occurred while preparing the installation. Try running again<\/p>\n<\/blockquote>\n\n\n\n<p>Now, if you haven\u2019t used your Mac for a while, the error might be caused by an incorrect&nbsp;system date&nbsp;setting. You can check this by going to&nbsp;<strong>utilities<\/strong>&nbsp;and opening the&nbsp;<strong>terminal<\/strong>. Once in the terminal enter the following command and hit return\/enter:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">date<\/pre>\n\n\n\n<p>The result of this command will be the date that the system currently has been set to. For some reason, it might have been reset to 2001, in which case we need to set it to the right date. To do this, we enter a new command. This command will be entered as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">date -u {month}{day}{hour}{minute}{year}<\/pre>\n\n\n\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&nbsp;<strong>your current time and date<\/strong>&nbsp;\u2013&nbsp;December 13th 2024 17:22. To avoid trouble with timezones, we will use UTC time instead (December 13th 2024 16:22). Which means, you can just enter it exactly like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">date -u 1213162224<\/pre>\n\n\n\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&nbsp;reinstall OS X, you might be met by the following message: An error&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1538","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/silica.nu\/index.php?rest_route=\/wp\/v2\/posts\/1538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/silica.nu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/silica.nu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/silica.nu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/silica.nu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1538"}],"version-history":[{"count":2,"href":"https:\/\/silica.nu\/index.php?rest_route=\/wp\/v2\/posts\/1538\/revisions"}],"predecessor-version":[{"id":1543,"href":"https:\/\/silica.nu\/index.php?rest_route=\/wp\/v2\/posts\/1538\/revisions\/1543"}],"wp:attachment":[{"href":"https:\/\/silica.nu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/silica.nu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/silica.nu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}