tags:

views:

210

answers:

3

Here a weird one. I just upgrade to php 5.3.0 and since the upgrade I'm getting the following warning:

Warning: getdate() [function.getdate]: 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 'America/Chicago' for 'CST/-6.0/no DST'

After looking in various forums, everybody says that to solve the problem, all you have to do is edit the date zone in the php.ini and restart Apache.

It did not work for me.

I tried

date.timezone="America/New_York"

date.timezone=America/New_York

date.timezone="US/Central"

Restarted apache after I made the change.

Since I still have the older version of php install, I even made sure that I'm editing the php.ini that the current version of php uses at the time to load

/usr/local/php5/lib/php.ini

Still getting the warning.

Any suggestions?

Thanks for taking the time.

A: 

Did you try to set timezone by func: http://pl.php.net/manual/en/function.date-default-timezone-set.php

cichy
+1  A: 

Check for syntax errors in the php.ini file, specially before the Date paramaters, that prevent the file from being parsed correctly.

amercader
A: 

I reinstalled everything and now works like a champ! Thanks for all your help.

Ole Media