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.
Problem with php.ini timezone setting
Moderator: General Moderators
Re: Problem with php.ini timezone setting
FYI I solved this in a weird way. I uninstalled XAMPP 1.7.3 and then installed XAMPPLITE 1.7.3 and hey presto, this problem is no longer apparent! There must be some differences in the control parameters between the two installations, but I have been unable to ascertain what they are that would affect the timezone setting in php.ini.