getdate() date() 관련 Warning 오류 대처 방법
서버 세팅하고 웹사이트 이전하였는데 혹시 Warning에 아래와 같은 문구가 있다면 확인해보셨으면 합니다.
Warning: getdate() [function.getdate]: 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 /home/aisi1004/config.inc.php on line 73
PHP timezone 설정 문제를 확인해보셨으면 합니다.
두가지 중에 하나를 선택해서 사용해봅니다.
------------------------
1. php.ini 에 파일속에 추가하여 사용하는 경우
[Date] 설정 부분 바로 아래 추가
date.timezone = Asia/Seoul
2. PHP 파일 date() 사용 상위에 넣어 사용하는 경우
date_default_timezone_set('Asia/Seoul');
-------------------------------
참고해서 진행해보셨으면 합니다.