'date()'에 해당되는 글 1건
php 에러 : phpinfo() - Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings.
from Programming Story 2010/02/15 22:08php 에러 : phpinfo() - Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings.
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
이렇게 수정하고 웹서버를 재시작해주자.