php date() 함수 사용시 오류 tiemzone 설정

error )

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 'Asia/Seoul' for 'KST/9.0/no DST' instead in 

solution )

php.ini 에서 date.timezone = Asia/Seoul 을 추가 

date() 함수 실행전에 아래의 코드를 추가 


No comments:

Post a Comment

php Fatal error: Class 'DOMDocument'