{"id":709,"date":"2013-08-09T07:38:41","date_gmt":"2013-08-09T07:38:41","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=709"},"modified":"2013-10-26T17:39:35","modified_gmt":"2013-10-26T17:39:35","slug":"warning-date-function-date-it-is-not-safe-to-rely-on-the-systems-timezone-settings","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=709","title":{"rendered":"Warning: date() [function.date]: It is not safe to rely on the system&#8217;s timezone settings"},"content":{"rendered":"<p>If your website or pages display this error don&#8217;t panic! it should be a quick and easy fix!<\/p>\n<p>Simply add the following line to your php.ini file, usually located in \/etc\/php.ini<\/p>\n<pre>date.timezone = \"England\/London\"<\/pre>\n<p><em>(You can of course use your country \/ city! this is just an example!)<\/em><\/p>\n<p>Alternatively, if your site it using cgi \/ fastcgi and you are on a multi domain or shared host you may have to add the line to the php.ini located in your actual webspace, usually again in the \/etc directory.<\/p>\n<p>eg. \/vhosts\/yourdomain.com\/etc\/php.ini<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your website or pages display this error don&#8217;t panic! it should be a quick and easy fix! Simply add the following line to your php.ini file, usually located in \/etc\/php.ini date.timezone = &#8220;England\/London&#8221; (You can of course use your country \/ city! this is just an example!) Alternatively, if your site it using cgi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,12],"tags":[],"class_list":["post-709","post","type-post","status-publish","format-standard","hentry","category-plesk","category-webhosting"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=709"}],"version-history":[{"count":2,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":808,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions\/808"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}