Comments on PHP - It is not safe to rely on the system's timezone settings.

Error: PHP - It is not safe to rely on the system's timezone settings. You get the following warning when you run a PHP script: 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.

2 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: denuxer

i have loaded date.timezon on php.ini file and on /etc/timzone

but not fix the problem, untiil i have to check the php configuration file i use following: php -i | grep php.ini | tail -n2

and it show the miss configuration i have.

By: Php Web Developer

Great tutorial. This tutorial was really useful to set default timezone in php.

Thanks.