Mengatasi Masalah Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings.


Pernah mengalami error seperti ini ketika pertama kali buka website Joomla “Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the 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 ‘Asia/Jakarta’ for ‘WIT/7.0/no DST’ instead in /home/user/public_html/modules/mod_swmenufree/functions.php on line 96”.

Kebetulan saya sendiri juga pernah, ternyata untuk mengatasi masalah ini bisa dibilang cukup mudah.Pastikan di cPanel website sudah ada file php.ini, jika belum ada bisa minta tolong pihak server untuk membuatkan file tersebut.Lalu ikuti langkah berikut ini :

  1. Login ke cPanel dan masuk ke public_html.
  2. Buka file php.ini lalu tambahkan kode berikut di baris terakhir : date.timezone = “Asia/Jakarta”
  3. Karena kita di Indonesia, maka benua dan kota yang dimasukkan yakni Asia dan Jakarta sebagai ibukota Indonesia.

Smeoga artikel sederhana ini bisa membantu.

2 thoughts on “Mengatasi Masalah Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings.

  1. Kalau seperti ini bagaimana ? tolong share ya

    Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the 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 ‘Asia/Krasnoyarsk’ for ‘7.0/no DST’ instead in C:\xampp\htdocs\adian\libraries\joomla\utilities\date.php on line 198

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s