سؤال

I ran a phpinfo() function in MAMP, and received the following warning, embedded in the php info table:

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 'America/New_York' for 'EST/-5.0/no DST' instead in /Applications/MAMP/bin/mamp/phpinfo.php on line 2 

the date.timezone in the php.ini file is set to 'America/New_York', and the warning is only three rows above that actual setting reflected in the phpinfo table!

Could someone please explain to me how to fix this issue?

هل كانت مفيدة؟

المحلول

You're certain there are no quotes around the timezone in the .ini file?

date.timezone = America/New_York

http://www.php.net/manual/en/timezones.america.php#85815

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top