{"id":228,"date":"2011-12-14T15:33:00","date_gmt":"2011-12-14T08:33:00","guid":{"rendered":"http:\/\/blog.kuncihost.com\/?p=228"},"modified":"2023-06-11T19:29:48","modified_gmt":"2023-06-11T12:29:48","slug":"memperbaiki-problem-fungsi-date-pada-php-5-3-2","status":"publish","type":"post","link":"https:\/\/www.kuncihost.com\/blog\/memperbaiki-problem-fungsi-date-pada-php-5-3-2","title":{"rendered":"Memperbaiki problem fungsi date() pada php 5.3"},"content":{"rendered":"<p>Saya menggunakan script mlm, setelah saya install atau setelah KunciHost\/ update ke php versi 5.3 kemarin kenapa website saya mengalami error kurang lebih seperti ini:<\/p>\n<blockquote><p><strong><em>Warning<\/em><\/strong><em>: date() [function.date]: It is not safe to rely on the system&#8217;s timezone settings. You are *required* to use the <!--more-->date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#8216;Asia\/Jakarta&#8217; for &#8216;WIT\/7.0\/no DST&#8217; instead in <strong>\/home\/xxx\/public_html\/fungsi\/fungsi.php<\/strong> on line <strong>394<\/strong><\/em><\/p><\/blockquote>\n<p>Kira-kira apa masalahnya? Dan bagaimana cara mengatasinya?<\/p>\n<p>Masalah tersebut terjadi dikarenakan script yang anda pakai masih menggunakan struktur PHP versi lama, sehingga tidak kompetible dengan versi 5.3 terutama di fugsi <strong>date(). <\/strong>Cara mengatasi hal tersebut, anda cukum penyisipkan kode di bawah ini pada baris pertama setelah kode <strong>&lt;?<\/strong> Yaitu sebagai berikut:<\/p>\n<p><strong>ini_set(&#8216;date.timezone&#8217;, &#8216;Asia\/Jakarta&#8217;);<\/strong><\/p>\n<p>setelah itu silahkan simpan.<\/p>\n<p>&nbsp;<\/p>\n<p>Semoga hal ini dapat membantu,<\/p>\n<p>terimakasih<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Saya menggunakan script mlm, setelah saya install atau setelah KunciHost\/ update ke php versi 5.3 kemarin kenapa website saya mengalami error kurang lebih seperti ini: Warning: date() [function.date]: It is not safe to rely on the system&#8217;s timezone settings. You are *required* to use the<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":""},"categories":[112,127],"tags":[66],"_links":{"self":[{"href":"https:\/\/www.kuncihost.com\/blog\/wp-json\/wp\/v2\/posts\/228"}],"collection":[{"href":"https:\/\/www.kuncihost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kuncihost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kuncihost.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kuncihost.com\/blog\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":0,"href":"https:\/\/www.kuncihost.com\/blog\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kuncihost.com\/blog\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kuncihost.com\/blog\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kuncihost.com\/blog\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}