¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 30°Ç
   
[PHP] tImezone
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-01-12 (È­) 10:07 Á¶È¸ : 2876
±ÛÁÖ¼Ò :
                          

# tail -f chonnom.com-error_log
[Tue Jan 12 10:04:57 2016] [error] [client 211.XXX.XXX.6] PHP 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 /home/chonnom/public_html/config.php on line 24, referer: http://chonnom.com/
[Tue Jan 12 10:04:57 2016] [error] [client 211.XXX.XXX.6] PHP 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 /home/chonnom/public_html/config.php on line 25, referer: http://chonnom.com/


ÇØ´ç¶óÀÎ date() ÇÔ¼ö
$board4['time_ymd']    = date("Y-m-d", $g4['server_time']);


# vim /etc/php.ini
[Date]
......................................
date.timezone = Asia/Seoul

# /etc/init.d/httpd restart



À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.