2013-08-29

PHP - "It is not safe to rely on the system's timezone settings..."

If you get an error message like the one below, simply add this line to your php.ini file.

date.timezone "America/New_York"


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/New_York' for 'EDT/-4.0/DST' instead

No comments:

Post a Comment