php date time setting ( timezone )

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.

jika muncul error d atas maka

silahkan edit php.ini di /etc/php.ini

dan rubah

date.timezone = “Asia/Jakarta”

untuk list timezone silahkan lihat di sini

save dan restart httpd

pada fedora 18 lakukan restart httpd

systemctl restart httpd

Leave a Reply

© 2018 IT & Photography blog | ScrollMe by AccessPress Themes