简体   繁体   中英

date.timezone issue in php.ini

I trying to installing php on IIS based on these steps .

I fallowed the instructions step by step and I did every thing correct, after all when i trying to see my phpinfo() i got this error:

PHP Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.

So I came back to my php.ini and set date.timezone like this and restart the IIS:

;date.timezone = "America/New_York"

but nothing happened and same as the old.

What should I do?

Remove comment symbol ; and restart IIS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM