Problem with php.ini timezone setting
Posted: Wed Jan 05, 2011 6:50 pm
Hi, I'm setting up PHP and other programs on a new PC running 64 bit windows 7. Have installed XAMPP and modified php.ini to reflect my timezone (Australia/Brisbane). But when I run phpinfo.php it gives me an error message:
Warning: phpinfo() [function.phpinfo]: 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 'Australia/Melbourne' for '10.0/no DST' instead in C:\xampp\htdocs\xampp\phpinfo.php on line 2
I have checked the spelling of the php.ini parameter and it seems OK. Here it is copied from php.ini:
date.timezone = "Australia/Brisbane"
I have checked that phpinfo is using the php.ini that I modified.
Any advice will be appreciated and thank you in anticipation.
Warning: phpinfo() [function.phpinfo]: 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 'Australia/Melbourne' for '10.0/no DST' instead in C:\xampp\htdocs\xampp\phpinfo.php on line 2
I have checked the spelling of the php.ini parameter and it seems OK. Here it is copied from php.ini:
date.timezone = "Australia/Brisbane"
I have checked that phpinfo is using the php.ini that I modified.
Any advice will be appreciated and thank you in anticipation.