wilson's story

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. 본문

PHP

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings.

wilson 2008. 8. 14. 14:15
반응형
php 작업을 하다가 date()를 사용하면서 생기는 오류이다.
서버에 있는 php.ini에 timezone이 세팅이 되어있지 않아서 생기는 오류이다.

Strict Standards
: date() [function.date]: It is not safe to rely on the system's timezone settings.

date()를 사용시 이런 에러가 출력되었다면
php.ini 에 들어가서


[Date]
; Defines the default timezone used by the date functions
;date.timezone =  이 부분을 주석을 풀고 timezone을 설정해준다.

 date.timezone = Asia/Seoul

이렇게 수정하고 웹서버를 재시작해주자.


반응형