프로그램/php2014. 1. 16. 18:46

php.ini 파일을 연 후 date.timezone = asia/seoul 설정을 해 준 후 아파치(apache) 데몬을 재 시작한다.

 

 에러 내용 :

Warning: 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in 에러 파일 경로 on line 1

 

php 5.3.x 버전 이후부터 date.timezone을 설정해야 한다. 더보기> php.ini 설정 파일 위치 찾기

Posted by 은둔고수