반응형
php 코드에서 date_default_timezone_set() 설정
[PHP Error 코드]
[Tue Jan 08 14:47:06 2013] [error] [client 10.0.10.102] PHP Warning: phpinfo(): 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 /usr/share/doc/squirrelmail-1.4.22/phpinfo.php on line 2
# vi /etc/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = ## 변경 전
date.timezone = Asia/Seoul ## 변경 후
728x90
반응형
'리눅스' 카테고리의 다른 글
[리눅스] APM 설치(MySQL, Apache, PHP) (0) | 2013.06.19 |
---|---|
[MySQL] DB 생성 및 DB, User 권한 설정 (0) | 2013.06.19 |
CentOS 6에서 mod_cband를 설치, 설정, 사용하는 방법 (0) | 2013.06.18 |
ethtool을 사용하여 랜 카드의 속도 및 전송 모드를 설정하는 방법 (0) | 2013.06.18 |
[vnc] vnc-server 설정 (0) | 2013.06.18 |