Warning: date(): It is not safe to rely on the system’s timezone settings.

Pada web-web joomla lama, joomla 1.5, yang berada di sistem server dengan php terkini, muncul warning seperti ini:

Warning: strtotime(): 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 the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/****/public_html/libraries/joomla/utilities/date.php on line 56

Warning: 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 the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/****/public_html/libraries/joomla/utilities/date.php on line 198

Untuk menghilangkan peringatan ini, ada beberapa cara, diantaranya dengan edit php.ini, namun kali ini saya tak berhasil, mungkin karena server menggunakan apachebooster yang tak lagi berjalan di apache namun di nginx.

Related Post

Solusinya, bisa dengan edit file date.php seperti yang ditunjukkan di dalam error di atas.

Saya masukkan sebaris kode ini: date_default_timezone_set(‘Asia/Jakarta’);

Ternyata errornya sudah tak muncul lagi.

Leave a Comment
Tags: JoomlaServer

Recent Posts

Ketika Selebritas Berkampanye di Media Sosial

Hingga Kamis (3/7) malam, di media sosial terutama Twitter, terus diwarnai adu kencang beberapa tagar… Read More

10 years ago

I Stand on The Right Side: Perang Senyap Pita Dukungan Capres

Hingga Minggu (8/6) siang pukul 12.00, pita kampanye “I Stand on The Right Side” meroket… Read More

10 years ago

KPU Sebenarnya Siap dengan Pemilu Serentak 2014

Walaupun akan merepotkan, Komisi Pemilihan Umum sudah mengantisipasi putusan MK jika menginginkan pemilu serentak pada… Read More

10 years ago

Jokowi Pengaruhi Angka Ambang Batas Parlemen

Figur Joko Widodo atau Jokowi dalam konstelasi politik Indonesia masih dominan dan bisa mempengaruhi iklim… Read More

10 years ago

Bawaslu Rilis Peta Potensi Kerawanan

Badan Pengawas Pemilu merilis peta kerawanan Pemilu 2014 untuk 510 kabupaten/kota di Indonesia. Peta itu… Read More

10 years ago

Strict Standards: Non-static method JLoader::import() should not be called statically in…

Masih pada joomla 1.5 yang dipasang di server dengan upgrade server ke php terkini, halamannya… Read More

10 years ago