리눅스/php

Warning: phpinfo(): It is not safe to rely on the system's timezone settings

Rohin 2014. 11. 23. 10:59
반응형

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. in /usr/local/apache/htdocs/test.php on line 2


관련 에러가 발생하였을시 php.ini 파일 부분을 수정해주면 된다.


;date.timezone = "Asia/seoul" 


위와같은 줄을 찾아서 위와같이 설정해준다