본문 바로가기
기타/PHP

It is not safe to rely on the system's timezone settings

by 죠부니 2019. 2. 20.
반응형

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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.


date_default_timezone_set('Asia/Seoul');


http://php.net/manual/en/function.date-default-timezone-set.php

반응형

'기타 > PHP' 카테고리의 다른 글

curl  (0) 2019.09.10
implode,explode  (0) 2019.06.20
php.ini 업로드관련설정값  (0) 2019.05.03
MSSQL_FETCH ROW, ASSOC, ARRAY  (0) 2019.04.15
$_SESSION  (0) 2019.04.15