vote up 0 vote down star

So I've installed Snow Leopard. I've got PHP 5.3 up and running. I've added the timezone line to my php.ini file, but it still doesn't work. I'm getting this error:

Warning: 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 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /locationToMyApp/library/Zend/Mail.php on line 760

In my /etc/php.ini file, I've got:

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "America/Los_Angeles"

What am I doing wrong?

I also remembered that I might have Zend Server installed. Could Apache be confused and is using the wrong php.ini file? Where should the default be located on Mac OS X? /etc/php.ini?

flag

63% accept rate
1  
This belongs on Stack Overflow. – eleven81 Nov 11 at 21:00

migrated to serverfault.com by ChrisF, ~quack, Wil, Diago Nov 12 at 13:23

This question is server or system administration related, and is a better fit for Server Fault.

Browse other questions tagged or ask your own question.