farse Posted April 23, 2012 Share Posted April 23, 2012 (edited) A search on date.timezone produced no results on this forum, but I have seen this topic discussed somewhere---now forgotten site. In trying to set up PHP 5.3 with a 5.3 php.ini file, I got the following error message: "Warning: date() [function.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/Denver' for 'MST/-7.0/no DST' instead in /home/content/81/9100081/html/lindamoor/adminlist.inc.php on line 3" I included "date.timezone = 'New York'" in my ini file, checked with info.php to see that it was set and still got the same error message. Repeated attempts, including different references (Phoenix & Denver) never eliminated the message. Without being able to change the memory limit with php.ini, I had to abandon 5.2 and revert to 5.2. Can anyone enlighten me? Edited April 23, 2012 by farse Link to comment Share on other sites More sharing options...
justsomeguy Posted April 23, 2012 Share Posted April 23, 2012 "New York" isn't a valid timezone identifier. Check the list here: http://www.php.net/manual/en/timezones.php Link to comment Share on other sites More sharing options...
farse Posted April 23, 2012 Author Share Posted April 23, 2012 I took my cue from what must have been an earlier list of acceptable values and from the server's default php.ini timezone, which displayed as "Denver" with no "America/" prefix. I will certainly try "America/New_York" and will be delighted with the new functions available in 5.3 when it works. (I'll be back if it doesn't work.) Thank you much. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now